1.提交缺失的东西
This commit is contained in:
@ -21,9 +21,11 @@ use app\common\{enum\notice\NoticeEnum,
|
||||
logic\BaseLogic,
|
||||
model\user\User,
|
||||
model\user\UserAuth,
|
||||
service\ConfigServer,
|
||||
service\FileService,
|
||||
service\sms\SmsDriver,
|
||||
service\wechat\WeChatMnpService};
|
||||
use think\facade\Db;
|
||||
use think\facade\Config;
|
||||
|
||||
/**
|
||||
@ -80,7 +82,17 @@ class UserLogic extends BaseLogic
|
||||
return $user->toArray();
|
||||
}
|
||||
|
||||
public static function myWallet($user_id)
|
||||
{
|
||||
$info = Db::name('user')
|
||||
->where(['id' => $user_id])
|
||||
->field('user_money,total_order_amount,total_recharge_amount,user_growth')
|
||||
->find();
|
||||
$info['open_racharge'] = ConfigServer::get('recharge', 'open_racharge', 0);
|
||||
return $info;
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
* @notes 设置用户信息
|
||||
* @param int $userId
|
||||
|
||||
Reference in New Issue
Block a user