地图api

This commit is contained in:
2026-01-01 15:19:18 +08:00
parent b8a9f9b62e
commit 09f117e59c
17 changed files with 99 additions and 13 deletions

View File

@@ -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());
}