zory 1 settimana fa
parent
commit
23ccff09b8
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 1 1
      app/controller/mini/Order.php
  2. 3 3
      app/controller/mini/Test.php

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

@@ -172,7 +172,7 @@ class Order extends Base
             $order = (new SaasOrder)->where("order_sn",$param['order'])->with(['goods' => function($query){
                 $query->field("out_id,product_name,product_img,product_price");
             },'poi' => function ($query) {
-                $query->field("poi_id,poi_name,poi_address");
+                $query->field("poi_id,poi_name,poi_address,longitude,latitude");
             },'parent' => function($query){
                 $query->field("order_id,pay_amount,expire_at,order_amount");
             },"store" => function($query){

+ 3 - 3
app/controller/mini/Test.php

@@ -21,11 +21,11 @@ class Test extends Base
         try {
             $uuid = ["228287898988984"];
 //            $resp = (new \app\extra\douyin\Order())->config($this->getDyConfig())->token()->getOrderDetail(["1090054060293461518"]);
-            $resp = (new \app\extra\douyin\Order())->config($this->getDyConfig())->token()->orderLock(1,"1090054060293461518","7578130844109078591","76IQA12W5EQ8NKELH8");
-//            $resp = (new \app\extra\douyin\Account())->config($this->getDyConfig())->token()->setWhiteSetting("7513378475235919883",1,false,$uuid);
+//            $resp = (new \app\extra\douyin\Order())->config($this->getDyConfig())->token()->orderLock(1,"1090054060293461518","7578130844109078591","76IQA12W5EQ8NKELH8");
+//            $resp = (new \app\extra\douyin\Account())->config($this->getDyConfig())->token()->setWhiteSetting("7513378475235919883",1,true);
 //            $resp = (new Client)->config($this->getDyConfig())->token()->setMiniPath("7513378475235919883");
 //            $resp = (new Client)->config($this->getDyConfig())->token()->queryOrder("7513378475235919883","_000SDaHqDYY9GGnyrpYfp4vIPHD8qs32XCx");
-            print_r($resp);
+//            print_r($resp);
             return success("ok");
         } catch (\Throwable $throwable) {
             return error($throwable->getMessage());