haozi 6 năm trước cách đây
mục cha
commit
1cc22da6d1

+ 1 - 1
app/Http/Controllers/api/thirdPart/flux/WaybillController.php

@@ -60,7 +60,7 @@ class WaybillController extends Controller
                 }
             }
             $recipient_mobile=ltrim($receiveInputting['C_Tel1'],',');
-            $recipient_mobile=rtrim($receiveInputting['C_Tel1'],',');
+            $recipient_mobile=trim($receiveInputting['C_Tel1'],',');
             $waybill=new Waybill([
                 'type'=>isset($zfList[$receiveInputting['CarrierID']])&&$zfList[$receiveInputting['CarrierID']]?"直发车":"专线",
                 'waybill_number'=>Uuid::uuid1(),

+ 16 - 0
tests/webApi/waybill.http

@@ -0,0 +1,16 @@
+# For a quick start check out our HTTP Requests collection (Tools|HTTP Client|Open HTTP Requests Collection).
+##
+## Following HTTP Request Live Templates are available:
+## * 'gtrp' and 'gtr' create a GET request with or without query parameters;
+## * 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
+## * 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
+
+POST bswas/api/thirdPart/flux/waybill/new
+Content-Type: application/json
+
+{"request":[{"OrderNo":"SO200519002019","CustomerID":"AOSEN","CarrierID":"BSZX","ConsigneeName":"林子湘","C_Tel1":",17676970031","C_Address1":"浙江省 湖州市 德清县 浙江省湖州市德清县雷甸镇兴业路乐创德清物流园中通云仓","C_Province":"浙江省","C_City":"湖州市","C_District":"德清县","ReservedField01":"BSCK2020051801022-1","ReservedField02":null,"ReservedField03":null,"ReservedField04":null,"ReservedField05":null,"order_list":[{"SKU_Descr_c":"奥本美柠檬净化角质护理棉片7G","SKU":"8801013350159","Alternate_sku1":"8801013350159","Qtyordered_each":"12300","Cubic":"0","GrossWeight":"0","NetWeight":"0","ReservedField01":null,"ReservedField02":null,"ReservedField03":null,"ReservedField04":null,"ReservedField05":null}]}]}
+
+###
+
+
+