feat: 增加查询店铺创建日志功能
This commit is contained in:
parent
8c2a37048e
commit
cfeebc8da1
@ -13,6 +13,7 @@ use app\common\enum\PayEnum;
|
|||||||
use app\common\logic\PaymentLogic;
|
use app\common\logic\PaymentLogic;
|
||||||
use app\common\logic\PayNotifyLogic;
|
use app\common\logic\PayNotifyLogic;
|
||||||
use app\common\model\user\User;
|
use app\common\model\user\User;
|
||||||
|
use app\common\model\user_create_log\UserCreateLog;
|
||||||
use app\common\model\user_recharge\UserRecharge;
|
use app\common\model\user_recharge\UserRecharge;
|
||||||
use Webman\RedisQueue\Redis;
|
use Webman\RedisQueue\Redis;
|
||||||
|
|
||||||
@ -105,10 +106,12 @@ class StoreController extends BaseApiController
|
|||||||
{
|
{
|
||||||
$store_id = $this->request->get('store_id',0);
|
$store_id = $this->request->get('store_id',0);
|
||||||
$count=0;
|
$count=0;
|
||||||
|
$createLog=0;
|
||||||
if($store_id){
|
if($store_id){
|
||||||
$count= UserRecharge::where(['store_id'=>$store_id,'recharge_type'=>'INDUSTRYMEMBERS','paid'=>1])->count();
|
$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]);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user