diff --git a/app/data/controller/api/Notify.php b/app/data/controller/api/Notify.php index 9ed0d33c5..b664b33d4 100644 --- a/app/data/controller/api/Notify.php +++ b/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 */ diff --git a/app/data/controller/api/auth/Order.php b/app/data/controller/api/auth/Order.php index 6de11f445..ab3e1f366 100644 --- a/app/data/controller/api/auth/Order.php +++ b/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 diff --git a/app/data/service/OrderService.php b/app/data/service/OrderService.php index e0498d930..a843578be 100644 --- a/app/data/service/OrderService.php +++ b/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; }