修复内容
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user