地图api
This commit is contained in:
@@ -54,6 +54,9 @@ class Payment extends ApiBase
|
||||
switch ($post['from']) {
|
||||
case 'order':
|
||||
$order = Order::get($post['order_id']);
|
||||
if ($order == null) {
|
||||
$this->_error('订单不存在');
|
||||
}
|
||||
if ($order['order_status'] == CommonOrder::STATUS_CLOSE || $order['del'] == 1) {
|
||||
$this->_error('订单已关闭');
|
||||
}
|
||||
@@ -79,6 +82,11 @@ class Payment extends ApiBase
|
||||
}
|
||||
|
||||
if (PaymentLogic::getReturnCode() != 0) {
|
||||
/**
|
||||
* 支付成功
|
||||
* 添加对应商品积分
|
||||
*/
|
||||
|
||||
$this->_success('', $result, PaymentLogic::getReturnCode());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user