Commit 57ac454d by 朱继来

调整申请收款

parent 72d738a7
Showing with 5 additions and 3 deletions
......@@ -32,13 +32,15 @@ class PayExtendModel extends Model
$event = '申请收款';
if ($id) { // 更新
$pay_extend = $this->where('order_id', $data['order_id'])->first();
if ($pay_extend) { // 更新
$data['update_uid'] = $request->user->userId;
$pay_extend_info = $this->find($id);
$pay_extend_info = $this->find($pay_extend->id);
$event .= ',修改前:支付方式 - '.$this->pay_type[$pay_extend_info['type']].';转账凭证 - '.$pay_extend_info['file_name'].',备注:'.$pay_extend_info['remark'];
$res = $this->where('id', $id)->update($data);
$res = $this->where('id', $pay_extend->id)->update($data);
if ($res === false) return [-1, '申请收款更新失败'];
} else { // 新增
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment