feat: 添加订单备注功能及修复资金流水逻辑错误

This commit is contained in:
mkm 2024-08-20 17:56:01 +08:00
parent 3f9f1363ca
commit 937841a400
2 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,7 @@ class OrderLogic extends BaseLogic
}
$_order['uid'] = $uid;
$_order['spread_uid'] = $params['spread_uid'] ?? 0;
$_order['mark'] = $params['mark'] ?? '';
$_order['real_name'] = $user['real_name'] ?? '';
$_order['user_phone'] = $user['mobile'] ?? '';
$_order['pay_type'] = $orderInfo['order']['pay_type'];

View File

@ -115,6 +115,7 @@ class CapitalFlowLogic extends BaseLogic
$model->title = $this->getTitle($category, $amount);
$model->mark = empty($mark) ? $model->title : $mark;
$model->save();
//这里有bug 要修改
$this->store->update(['balance' => $model->balance], ['id' => $this->store['id']]);
return $model->id;
}
@ -144,6 +145,7 @@ class CapitalFlowLogic extends BaseLogic
$model->title = $this->getTitle($category, $amount);
$model->mark = empty($mark) ? $model->title : $mark;
$model->save();
//这里有bug 要修改
$this->store->update(['balance' => $model->balance], ['id' => $this->store['id']]);
return $model->id;
}