Anyon 4 سال پیش
والد
کامیت
15da07ef89
3فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 1 0
      app/data/controller/api/Notify.php
  2. 3 2
      app/data/controller/api/auth/Order.php
  3. 2 0
      app/data/service/OrderService.php

+ 1 - 0
app/data/controller/api/Notify.php

@@ -7,6 +7,7 @@ use app\wechat\service\WechatService;
 use think\admin\Controller;
 
 /**
+ * 异步通知处理
  * Class Notify
  * @package app\data\controller\api
  */

+ 3 - 2
app/data/controller/api/auth/Order.php

@@ -11,6 +11,7 @@ use think\admin\extend\CodeExtend;
 use think\exception\HttpResponseException;
 
 /**
+ * 会员订单数据接口
  * Class Order
  * @package app\data\controller\api\auth
  */
@@ -163,7 +164,7 @@ class Order extends Auth
         } catch (HttpResponseException $exception) {
             throw  $exception;
         } catch (\Exception $exception) {
-            $this->error("获取支付参数失败,{$exception->getMessage()}");
+            $this->error("创建支付参数失败,{$exception->getMessage()}");
         }
     }
 
@@ -219,7 +220,7 @@ class Order extends Auth
     }
 
     /**
-     * 订单取消
+     * 主动取消未支付的订单
      * @throws \think\db\exception\DataNotFoundException
      * @throws \think\db\exception\DbException
      * @throws \think\db\exception\ModelNotFoundException

+ 2 - 0
app/data/service/OrderService.php

@@ -2,6 +2,7 @@
 
 namespace app\data\service;
 
+use think\admin\extend\CodeExtend;
 use think\admin\Service;
 
 /**
@@ -18,6 +19,7 @@ class OrderService extends Service
      */
     public function syncAmount(string $orderno): bool
     {
+        //@todo 处理订单支付完成的动作
         return true;
     }