作者 刘朕

抽奖功能库存减少方式调整

... ... @@ -536,9 +536,8 @@ class H5 extends Api
// $this->error('商户活动资金不足');
// }
H5Chou::where('id', $data['chou_id'])->setDec('all_money', $data['num']);
H5Jiang::where('id', $jiang_data['id'])->setDec('stock');
}
H5Jiang::where('id', $jiang_data['id'])->setDec('stock');
if (res2bool($res1) && res2bool($res2)) {
} else {
... ...