|
|
@@ -206,7 +206,9 @@ class BalanceLogService extends BaseService
|
|
|
$fields = [1=>'balance',2=>'property',4=>'ls_score'];
|
|
|
$field = isset($fields[$accountType])? $fields[$accountType]:'balance';
|
|
|
RedisService::set($cacheLockKey, ['user_id' => $userId, 'params' => $params], rand(10, 20));
|
|
|
- $userInfo = MemberModel::where(['id' => $userId, 'mark' => 1])->select(['id', 'balance','property','buy_type','bonus_status','bd_score','ls_score', 'status'])->first();
|
|
|
+ $userInfo = MemberModel::where(['id' => $userId, 'mark' => 1])
|
|
|
+ ->select(['id', 'balance','property','buy_type','bonus_status','bd_score','ls_score', 'status'])
|
|
|
+ ->first();
|
|
|
$realname = isset($userInfo['realname']) ? $userInfo['realname'] : '';
|
|
|
$status = isset($userInfo['status']) ? $userInfo['status'] : 0;
|
|
|
$bonusStatus = isset($userInfo['bonus_status']) ? $userInfo['bonus_status'] : 0;
|
|
|
@@ -226,7 +228,7 @@ class BalanceLogService extends BaseService
|
|
|
$mealPrice = GoodsModel::where(['type'=>2,'mark'=>1])
|
|
|
->where('id','>', $buyType)
|
|
|
->orderBy('id','asc')
|
|
|
- ->value(['price']);
|
|
|
+ ->value('price');
|
|
|
$withdrawQuota = intval($mealPrice/0.27 * 0.73);
|
|
|
if($money>$withdrawQuota){
|
|
|
$this->error = "抱歉您的账号可提现额度为:{$withdrawQuota}元";
|