|
@@ -345,21 +345,24 @@ class GuanYiCloud extends Api |
|
@@ -345,21 +345,24 @@ class GuanYiCloud extends Api |
345
|
$data['appkey'] = APPKEY;
|
345
|
$data['appkey'] = APPKEY;
|
346
|
$data['sessionkey'] = SESSIONKEY;
|
346
|
$data['sessionkey'] = SESSIONKEY;
|
347
|
$data['method'] = 'gy.erp.trade.add';
|
347
|
$data['method'] = 'gy.erp.trade.add';
|
|
|
348
|
+ //订单类型 //Sales-销售订单//Return-换货订单//Charge-费用订单//Delivery-补发货订单//Invoice-补发票订单
|
348
|
$data['order_type_code'] = 'Sales';
|
349
|
$data['order_type_code'] = 'Sales';
|
|
|
350
|
+ //退款状态 //0:未退款//1:退款完成//2:退款中
|
349
|
$data['refund'] = 0;
|
351
|
$data['refund'] = 0;
|
350
|
- $data['warehouse_code'] = 'CK001';
|
|
|
351
|
- $data['cod'] = false;
|
352
|
+ //仓库代码 未提供时,根据系统仓库匹配规则自动分配仓库,若内部服务调用超时,调用多次无果,相关项留空进行订单新增,调用结果按创建成功返回
|
|
|
353
|
+// $data['warehouse_code'] = 'CK001';
|
|
|
354
|
+ //店铺代码
|
352
|
$data['shop_code'] = 'CJ001';
|
355
|
$data['shop_code'] = 'CJ001';
|
353
|
- $data['express_code'] = 'sto';
|
356
|
+ //未提供时,根据系统快递公司匹配规则自动分配快递公司,若内部服务调用超时,调用多次无果,相关项留空进行订单新增,调用结果按创建成功返回
|
|
|
357
|
+// $data['express_code'] = 'sto';
|
354
|
$random_code = time(); //获取当前时间戳,以时间戳做平台单号可以防止重复,避免出错,此方式仅为测试
|
358
|
$random_code = time(); //获取当前时间戳,以时间戳做平台单号可以防止重复,避免出错,此方式仅为测试
|
355
|
- $data['platform_code'] = $random_code;
|
|
|
356
|
- $data['deal_datetime'] = '2015-11-13 14:39:23';
|
359
|
+ //平台单号
|
|
|
360
|
+ $data['platform_code'] = 'Bronet888';
|
|
|
361
|
+ //下单时间
|
|
|
362
|
+ $data['deal_datetime'] = '2020-12-01 14:39:23';
|
|
|
363
|
+ //支付时间
|
357
|
$data['pay_datetime'] = '2015-09-09 10:47:00';
|
364
|
$data['pay_datetime'] = '2015-09-09 10:47:00';
|
358
|
- $data['post_fee'] = 0;
|
|
|
359
|
- $data['cod_fee'] = 0;
|
|
|
360
|
- $data['discount_fee'] = 0;
|
|
|
361
|
- $data['tag_code'] = '1';
|
|
|
362
|
- $data['plan_delivery_date'] = '2015-09-09 10:47:01';
|
365
|
+ //会员代码
|
363
|
$data['vip_code'] = 'guqilong';
|
366
|
$data['vip_code'] = 'guqilong';
|
364
|
$data['buyer_memo'] = 'buyer_memo';
|
367
|
$data['buyer_memo'] = 'buyer_memo';
|
365
|
$data['seller_memo'] = 'seller_memo+%$#@!~^late';
|
368
|
$data['seller_memo'] = 'seller_memo+%$#@!~^late';
|
|
@@ -382,13 +385,6 @@ class GuanYiCloud extends Api |
|
@@ -382,13 +385,6 @@ class GuanYiCloud extends Api |
382
|
'qty' => 2,
|
385
|
'qty' => 2,
|
383
|
'refund' => 0
|
386
|
'refund' => 0
|
384
|
);
|
387
|
);
|
385
|
- // $details[] = array(
|
|
|
386
|
- // 'item_code' => 'A002',
|
|
|
387
|
- // 'sku_code' => 'A002012',
|
|
|
388
|
- // 'price' => 9.99,
|
|
|
389
|
- // 'qty' => 2,
|
|
|
390
|
- // 'refund' => 0
|
|
|
391
|
- // );
|
|
|
392
|
$data['details'] = $details;
|
388
|
$data['details'] = $details;
|
393
|
$payments = array();
|
389
|
$payments = array();
|
394
|
$payments[] = array(
|
390
|
$payments[] = array(
|