账户充值

feat/task1-c-wallet
devil_gong 2019-05-07 18:44:11 +08:00
parent fd794254d6
commit 2ce1a30974
1 changed files with 3 additions and 2 deletions

View File

@ -345,7 +345,7 @@ class PayService
);
if(Db::name('PluginsWalletRecharge')->where(['id'=>$params['recharge']['id']])->update($upd_data))
{
$log_data = [
/*$log_data = [
'user_id' => $wallet['user_id'],
'wallet_id' => $wallet['id'],
'business_type' => 0,
@ -360,7 +360,8 @@ class PayService
{
Db::rollback();
return DataReturn('日志添加失败', -101);
}
}*/
// 提交事务
Db::commit();
return DataReturn('支付成功', 0);