修复内容

This commit is contained in:
2026-01-18 18:07:53 +08:00
parent 5455aceab5
commit 5fe5289e26
9 changed files with 493 additions and 470 deletions

View File

@@ -75,7 +75,9 @@ class Payment extends ApiBase
if ($order['pay_status'] == Pay::ISPAID || $order['order_amount'] == 0) {
$this->_success('支付成功', ['order_id' => $order['id']], 10001);
}
if ($post['order_source'] == null){
$post['order_source'] = 1;
}
$result = PaymentLogic::pay($post['from'], $order, $post['order_source']);
if (false === $result) {
$this->_error(PaymentLogic::getError(), ['order_id' => $order['id']], PaymentLogic::getReturnCode());
@@ -86,7 +88,6 @@ class Payment extends ApiBase
* 支付成功
* 添加对应商品积分
*/
$this->_success('', $result, PaymentLogic::getReturnCode());
}