Bladeren bron

壹号专线发货

zhangdehua 1 jaar geleden
bovenliggende
commit
8b402d3d8b
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 3 3
      app/common/library/express/Usps.php
  2. 1 1
      app/store/service/order/DeliveryByF1.php

+ 3 - 3
app/common/library/express/Usps.php

@@ -161,9 +161,9 @@ class Usps
 
             $url = 'http://f1.itdida.com/itdida-api/login?' . http_build_query($params);
             $header = ['Content-Type: application/x-www-form-urlencode'];
-            //$res = curl_post($url, [], $header);
-            $resJson = '{"data":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhODFiMzZkNGYwZDUxMWVlODM1YjViMWQ1MmE0NjcxNSIsImNyZWF0ZWQiOjE3MTM0OTc1MzQ1MDEsInJvbGVzIjpbeyJhdXRob3JpdHkiOiJST0xFX0tFSFUifV0sImRvbWFpbiI6ImYxIiwiZXhwIjoxNzEzNjcwMzM0fQ.bMVc3E2pTJFA0wztgizsXpqexD65TH471lRpj92jqgVKx2-q2qqhevUMRmZ73c2TQihDVXvmjlaNp0dPdEgZDg","statusCode":200,"success":true}';
-            $res = json_decode($resJson, true);
+            $res = curl_post($url, [], $header);
+            //$resJson = '{"data":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhODFiMzZkNGYwZDUxMWVlODM1YjViMWQ1MmE0NjcxNSIsImNyZWF0ZWQiOjE3MTM0OTc1MzQ1MDEsInJvbGVzIjpbeyJhdXRob3JpdHkiOiJST0xFX0tFSFUifV0sImRvbWFpbiI6ImYxIiwiZXhwIjoxNzEzNjcwMzM0fQ.bMVc3E2pTJFA0wztgizsXpqexD65TH471lRpj92jqgVKx2-q2qqhevUMRmZ73c2TQihDVXvmjlaNp0dPdEgZDg","statusCode":200,"success":true}';
+            //$res = json_decode($resJson, true);
             if (isset($res['statusCode']) && $res['statusCode'] == 200 && $res['success']) {
                 Cache::set('ItdidaToken', $res['data'], 169200);
                 return $res['data'];

+ 1 - 1
app/store/service/order/DeliveryByF1.php

@@ -147,7 +147,7 @@ class DeliveryByF1 extends BaseService
                 "shenBaoDanJia" => $good['goods_price'],//todo fill 申报单价
                 "shenBaoHaiGuanBianMa" => "",
                 "shenBaoJinE" => $good['total_price'],//todo fill 申报金额
-                "shenBaoPinMing" => "vape",//$good['goods_name'],//todo fill 品名
+                "shenBaoPinMing" => "vapor",//$good['goods_name'],//todo fill 品名
                 "shenBaoShuLiang" => $good['total_num'],
                 "zhongWenPinMing" => "电子烟"//todo fill
             ];