|
|
@@ -91,11 +91,28 @@ class Aatest extends Start_Controller {
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
|
{
|
|
|
- $shop_info = $this->shop->read(38);
|
|
|
- $info = $this->logic_order->getInfo("orderinfo = '577190783790387652'");
|
|
|
- $r = $this->apitt->getExpressCompany($info,$shop_info);
|
|
|
+
|
|
|
+ $info = $this->logic_order->getInfo("orderinfo = '577193171472388208'");
|
|
|
+
|
|
|
+
|
|
|
+ if(is_string($info['extra_text'])){
|
|
|
+ $extra_text = json_decode($info['extra_text'],true);
|
|
|
+ //快递服务商
|
|
|
+ $server_info = $extra_text['server_info'];
|
|
|
+ }else{
|
|
|
+ //快递服务商
|
|
|
+ $server_info = $info['extra_text'];
|
|
|
+ }
|
|
|
+
|
|
|
+ $post = [
|
|
|
+ 'order_id'=>$server_info['order_id'],
|
|
|
+ "order_line_item_ids"=>$server_info['order_line_id'],
|
|
|
+ "dimension"=>$server_info['dimension'],
|
|
|
+ "shipping_service_id"=>$server_info['shipping_services'][$info['ttsp_xz']]['id'],
|
|
|
+ "weight"=>$server_info['weight'],
|
|
|
+ ];
|
|
|
echo "<pre>";
|
|
|
- var_dump($r);
|
|
|
+ print_r($post);
|
|
|
die;
|
|
|
$shop = $this->shop->read(35);
|
|
|
//$order_id = "577182146069041251";
|