作者 王智

修改

@@ -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(
@@ -7749,7 +7749,7 @@ class Algorithm extends Api @@ -7749,7 +7749,7 @@ class Algorithm extends Api
7749 } 7749 }
7750 } elseif ($ChooseArray[$k][0] == 46 + $i) {//请选择其它影响你睡眠的事情 多选 7750 } elseif ($ChooseArray[$k][0] == 46 + $i) {//请选择其它影响你睡眠的事情 多选
7751 foreach ($StrFunctionArray as $key => $value) { 7751 foreach ($StrFunctionArray as $key => $value) {
7752 - if ($value != 'J') { 7752 + if ($value != 'J') {
7753 $Num = $Num + 1; 7753 $Num = $Num + 1;
7754 } 7754 }
7755 } 7755 }
@@ -7764,7 +7764,7 @@ class Algorithm extends Api @@ -7764,7 +7764,7 @@ class Algorithm extends Api
7764 { 7764 {
7765 if ($Letter == 'A' || $Letter == 'B' || $Letter == 'C' || $Letter == 'D') { 7765 if ($Letter == 'A' || $Letter == 'B' || $Letter == 'C' || $Letter == 'D') {
7766 $Num = 1; 7766 $Num = 1;
7767 - } elseif ($Letter == 'E') { 7767 + } elseif ($Letter == 'E') {Hero Theme
7768 $Num = 2; 7768 $Num = 2;
7769 } elseif ($Letter == 'F') { 7769 } elseif ($Letter == 'F') {
7770 $Num = 3; 7770 $Num = 3;