feat: 添加订单备注功能及修复资金流水逻辑错误
This commit is contained in:
parent
3f9f1363ca
commit
937841a400
@ -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'];
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user