作者 王智

管易Api修改

... ... @@ -163,13 +163,8 @@ class GuanYiCloud extends Api
$data['order_type_code'] = 'Sales';
//退款状态 //0:未退款//1:退款完成//2:退款中
$data['refund'] = 0;
//仓库代码 未提供时,根据系统仓库匹配规则自动分配仓库,若内部服务调用超时,调用多次无果,相关项留空进行订单新增,调用结果按创建成功返回
// $data['warehouse_code'] = 'CK001';
//店铺代码
$data['shop_code'] = 'ZCZXCX';
//未提供时,根据系统快递公司匹配规则自动分配快递公司,若内部服务调用超时,调用多次无果,相关项留空进行订单新增,调用结果按创建成功返回
// $data['express_code'] = 'sto';
// $random_code = time(); //获取当前时间戳,以时间戳做平台单号可以防止重复,避免出错,此方式仅为测试
//平台单号
$data['platform_code'] = $OrderSn;
//下单时间
... ... @@ -187,19 +182,6 @@ class GuanYiCloud extends Api
$data['receiver_province'] = $Province;
$data['receiver_city'] = $City;
$data['receiver_district'] = $District;
// $details = array();
// $details[] = array(
// //商品代码
// 'item_code' => $CoodsCode,
// //规格代码
//// 'sku_code' => 'A002012',
// //实际单价
// 'price' => $Price,
// //商品数量
// 'qty' => $Num,
// //0:未退款//1:退款完成//2:退款中
//// 'refund' => 0
// );
$data['details'] = $details;
$payments = array();
$payments[] = array(
... ... @@ -218,8 +200,6 @@ class GuanYiCloud extends Api
//发票部分
'invoice_type' => 1,
'invoice_title' => '个人',
// 'invoice_content' => '明细',
// 'invoice_amount' => '88.90'
);
$data['invoices'] = $invoices;
$data['sign'] = $this->sign($data, SECRET);
... ... @@ -227,10 +207,6 @@ class GuanYiCloud extends Api
if ($Rult['success'] == false) {
$this->error('失败');
}
// $Array = json_decode(json_encode(json_decode($this->mycurl(URL, $data))), true);
//订单单据编号
//SO285064111288
// dump($Array['code']);
}
/*Config*/
... ...