zory 1 هفته پیش
والد
کامیت
a6aeb4a608
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/controller/mini/Confirm.php

+ 2 - 2
app/controller/mini/Confirm.php

@@ -68,8 +68,6 @@ class Confirm extends Base
     {
         try {
             $param = $request->post();
-            echo getDateFull()."====提交预约\n";
-            print_r($param);
             $orderLife = (new SaasOrderLife)->where("order_id",$param['order'])->with(['store','agent'])->findOrEmpty();
             if ($orderLife->isEmpty()) return errorTrans("empty.data");
             $order = (new SaasOrder)->where("order_id",$param['order'])->where("status","in",[1,2,4])->findOrEmpty();
@@ -100,6 +98,8 @@ class Confirm extends Base
             $param['lock_key'] = strtoupper(CodeExtend::random(18,3));
             // 锁码
             $resp = (new DouyinOrder)->config($this->getDyConfig())->token()->orderLock(2,$param['order'],$param['certificate_id'],$param['lock_key']);
+            echo getDateFull()."====提交预约-加锁\n";
+            print_r($resp);
             if ($resp['err_no'] <> 0) return error("订单数据异常");
             $orderLife->status = 2;
             $orderLife->save();