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