优化:Give_Gift 表查询处理

This commit is contained in:
2026-01-12 20:22:30 +08:00
parent 9f8e25948a
commit a4ee889127
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class Lottery extends Model
//送给所有人的总价格
$all_gift_price = $gift_info['gift_price'] * $num * count($toarray);
//判断是否有足够的金币
$user_waller = db::name('user_wallet')->where(['user_id'=>$send_uid])->find();
$user_waller = db::name('user_wallet_coin')->where(['user_id'=>$send_uid])->find();
if ($user_waller['coin'] < $all_gift_price) {
return ['code' => 0, 'msg' => '用户金币不足', 'data' => null];
}