...
|
...
|
@@ -30,7 +30,7 @@ class BirdController extends AdminBaseController |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 预约取件
|
|
|
* 电子面单
|
|
|
* @return mixed
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
...
|
...
|
@@ -63,7 +63,9 @@ class BirdController extends AdminBaseController |
|
|
$region = explode(' ',$address['region']);
|
|
|
|
|
|
//请求url,接口正式地址:http://api.kdniao.com/api/OOrderService 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json
|
|
|
defined('ReqURL') or define('ReqURL', 'http://api.kdniao.com/api/OOrderService');
|
|
|
// defined('ReqURL') or define('ReqURL', 'http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json');
|
|
|
//请求url,接口正式地址:http://api.kdniao.com/api/EOrderService 测试环境地址:http://sandboxapi.kdniao.com:8080/kdniaosandbox/gateway/exterfaceInvoke.json
|
|
|
defined('ReqURL') or define('ReqURL', 'http://api.kdniao.com/api/EOrderService');
|
|
|
|
|
|
|
|
|
//构造在线下单提交信息
|
...
|
...
|
@@ -107,8 +109,8 @@ class BirdController extends AdminBaseController |
|
|
$result = json_decode($jsonResult, true);
|
|
|
cache('test',$result);
|
|
|
if ($result["ResultCode"] == "100") {
|
|
|
if(!empty($result['Order']['LogisticCode'])){
|
|
|
$indentModel->updateData(['id'=>$indent_id],['logistic_code'=>$result['Order']['LogisticCode']]);
|
|
|
if(!empty($result['Order']['KDNOrderCode'])){
|
|
|
$indentModel->updateData(['id'=>$indent_id],['logistic_code'=>$result['Order']['KDNOrderCode']]);
|
|
|
}
|
|
|
return json_encode(['code'=>20000,'msg'=>'SUCCESS','data'=>$result]);//返回快递单号
|
|
|
} else {
|
...
|
...
|
|