修改返利提现

This commit is contained in:
邹景立 2021-03-15 17:56:58 +08:00
parent a74b216dfd
commit 53358c8b78
2 changed files with 3 additions and 6 deletions

View File

@ -50,17 +50,14 @@ class UserTransfer extends Command
]); ]);
} else { } else {
$this->app->db->name('DataUserTransfer')->where(['code' => $vo['code']])->update([ $this->app->db->name('DataUserTransfer')->where(['code' => $vo['code']])->update([
'change_time' => date('Y-m-d H:i:s'), 'change_time' => date('Y-m-d H:i:s'), 'change_desc' => $result['err_code_des'] ?? '线上提现失败',
'change_desc' => $result['err_code_des'] ?? '线上提现失败',
]); ]);
} }
} catch (\Exception $exception) { } catch (\Exception $exception) {
$this->output->writeln("订单 {$vo['code']} 提现失败,{$exception->getMessage()}"); $this->output->writeln("订单 {$vo['code']} 提现失败,{$exception->getMessage()}");
$this->app->db->name('DataUserTransfer')->where(['code' => $vo['code']])->update([ $this->app->db->name('DataUserTransfer')->where(['code' => $vo['code']])->update([
'change_time' => date('Y-m-d H:i:s'), 'change_time' => date('Y-m-d H:i:s'), 'change_desc' => $exception->getMessage(),
'change_desc' => $exception->getMessage(),
]); ]);
} }
} }
} }

View File

@ -112,7 +112,7 @@ class UserTransfer extends Controller
*/ */
public function sync() public function sync()
{ {
$this->_queue('提现到余额定时处理', 'xdata:UserTransfer', 0, [], 0, 50); $this->_queue('提现到微信余额定时处理', 'xdata:UserTransfer', 0, [], 0, 50);
} }
} }