Zory 5 天之前
父节点
当前提交
b4f548371d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/controller/mini/Order.php

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

@@ -54,8 +54,6 @@ class Order extends Base
     {
         try {
             $param = $request->post();
-            echo "同步订单\n";
-            print_r($param);
             $sessionKey = (new Crypt)->config($this->getDyConfig())->getSessionKey($param['auth']);
             if (empty($sessionKey)) return error("授权登录失败");
             if (!isset($sessionKey['openid'])) return error("获取数据失败");
@@ -75,6 +73,8 @@ class Order extends Base
             if (!empty($param['account_id'])) {
                 $this->asyncDyOrder($param['account_id'],$openId,$param['order_id']);
             }
+            echo getDateFull()."===={$openId}===同步订单\n";
+            print_r($param);
             $order = (new SaasOrderLife)->where("open_id",$openId)->where('order_id',$param['order_id'])->with(['goods' => function($query){
                 $query->field("out_id,product_img");
             },'store' => function($query){