|  | @@ -130,6 +130,22 @@ class Model_express_tt extends Lin_Model {
 | 
	
		
			
				|  |  |              $extra_text = json_decode($extra_text,true);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          $packages = $extra_text['packages'];
 | 
	
		
			
				|  |  | +        $packageid = $packages[0]['id'];
 | 
	
		
			
				|  |  | +        if(!isset($extra_text['is_send'])){
 | 
	
		
			
				|  |  | +            $rr1 = $this->apitt->ShipByTiktok($packageid,$shop_info[0],$info);
 | 
	
		
			
				|  |  | +            if(($rr1['code'] == 0) && ($rr1['message'] == 'Success')){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            }else{
 | 
	
		
			
				|  |  | +                $extra_text['is_send'] = 1;
 | 
	
		
			
				|  |  | +                $this->db->update('fullordertt', [
 | 
	
		
			
				|  |  | +                    'extra_text' => json_encode($extra_text,JSON_UNESCAPED_UNICODE)
 | 
	
		
			
				|  |  | +                ], ['id' => $info['id']]) ;
 | 
	
		
			
				|  |  | +                return [
 | 
	
		
			
				|  |  | +                    'x'=>0,
 | 
	
		
			
				|  |  | +                    'Description'=>$rr1['message'],  
 | 
	
		
			
				|  |  | +                ];
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          // if(!isset($extra_text['server_info'])){
 | 
	
		
			
				|  |  |          //     $rr1 = $this->getExpressCompany($info,$shop_info[0]);
 | 
	
		
			
				|  |  |          //     if($rr1['x'] == 0){
 | 
	
	
		
			
				|  | @@ -154,18 +170,6 @@ class Model_express_tt extends Lin_Model {
 | 
	
		
			
				|  |  |          //     }
 | 
	
		
			
				|  |  |          // }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        // if(!isset($extra_text['label_info'])){
 | 
	
		
			
				|  |  | -        //     $rr2 = $this->createExpressLabel($info,$shop_info[0]);
 | 
	
		
			
				|  |  | -        //     if($rr2['x'] == 0){
 | 
	
		
			
				|  |  | -        //         return $rr2;
 | 
	
		
			
				|  |  | -        //     }
 | 
	
		
			
				|  |  | -        //     $info = $rr2['data'];
 | 
	
		
			
				|  |  | -        //     if(is_string($info['extra_text'])){
 | 
	
		
			
				|  |  | -        //         $info['extra_text'] = json_decode($info['extra_text'],true);
 | 
	
		
			
				|  |  | -        //     }
 | 
	
		
			
				|  |  | -        // }
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | -        $packageid = $packages[0]['id'];
 | 
	
		
			
				|  |  |          $rr = $this->apitt->downloadLabel($packageid,$shop_info[0],$info);
 | 
	
		
			
				|  |  |          if($rr['code']!=0){
 | 
	
		
			
				|  |  |              return [
 |