feat: 增加查询店铺创建日志功能

This commit is contained in:
mkm 2024-06-22 17:11:22 +08:00
parent 8c2a37048e
commit cfeebc8da1

View File

@ -13,6 +13,7 @@ use app\common\enum\PayEnum;
use app\common\logic\PaymentLogic;
use app\common\logic\PayNotifyLogic;
use app\common\model\user\User;
use app\common\model\user_create_log\UserCreateLog;
use app\common\model\user_recharge\UserRecharge;
use Webman\RedisQueue\Redis;
@ -105,10 +106,12 @@ class StoreController extends BaseApiController
{
$store_id = $this->request->get('store_id',0);
$count=0;
$createLog=0;
if($store_id){
$count= UserRecharge::where(['store_id'=>$store_id,'recharge_type'=>'INDUSTRYMEMBERS','paid'=>1])->count();
$createLog= UserCreateLog::where(['store_id'=>$store_id])->count();
}
return $this->success('ok',['count'=>$count]);
return $this->success('ok',['count'=>$count,'create_log'=>$createLog]);
}
}