update:公司提现改造,app端新增用户当前可提现金额接口,后台新增提现审核接口,根据周期内可提现金额做扣除公司金额和用户金额。

This commit is contained in:
chenbo 2023-09-09 20:18:18 +08:00
parent deb4b80b74
commit a7c5bd3390
2 changed files with 4 additions and 3 deletions

View File

@ -46,9 +46,6 @@ class WithdrawController extends BaseAdminController
{
try {
$params = $this->request->param();
if (empty($params['transfer_voucher'])) {
return $this->fail('请上传转账凭证');
}
$re = WithdrawLogic::audit($params);
if (!$re) {
return $this->fail(WithdrawLogic::getError());

View File

@ -47,6 +47,10 @@ class WithdrawLogic extends BaseLogic
return true;
}
if (empty($params['transfer_voucher'])) {
throw new Exception('请上传转账凭证');
}
Db::startTrans();
$endCycle = $withDrawInfo['transfer_end_cycel']; // 提现周期截止时间戳