|
|
@@ -24,6 +24,7 @@ use app\common\{enum\notice\NoticeEnum,
|
|
|
model\orders\OrderEffectiveLog,
|
|
|
model\user\User,
|
|
|
model\user\UserAuth,
|
|
|
+ model\works\ReturnWork,
|
|
|
service\FileService,
|
|
|
service\sms\SmsDriver,
|
|
|
service\wechat\WeChatMnpService};
|
|
|
@@ -62,6 +63,7 @@ class UserLogic extends BaseLogic
|
|
|
$user['coupon_count'] = UserCoupon::where(['user_id' => $userInfo['user_id'] , 'voucher_status'=>0])->where('expire_time','>',time())->where('voucher_count','>',0)->count();
|
|
|
$user['equity_count'] = UserEquity::where(['user_id' => $userInfo['user_id']])->where('number','>',0)->count();
|
|
|
$user['effective_count'] = OrderEffectiveLog::where(['user_id' => $userInfo['user_id']])->where('end_effective_time','>',time())->where('effective_num','>',0)->count();
|
|
|
+ $user['return_work_count'] = ReturnWork::where(['user_id' => $userInfo['user_id']])->where('return_work_status','<>',2)->count();
|
|
|
return $user->toArray();
|
|
|
}
|
|
|
|