|
@@ -2298,8 +2298,14 @@ class Fullordersmt extends Start_Controller {
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- $this->fullordersmt->save(array('waybill'=>$msg,'state'=>209,'dlz'=>2),$id);
|
|
|
- echo json_encode(array('msg'=>'声明失败:'.$result['error_msg'],'success'=>false));exit;
|
|
|
+ if(isset($result_t['result_success']) && $result_t['result_success'] == "true"){
|
|
|
+ $this->fullordersmt->save(array('waybill'=>$msg,'state'=>209,'dlz'=>1),$id);
|
|
|
+ echo json_encode(array('msg'=>'操作成功','success'=>false));exit;
|
|
|
+ }else{
|
|
|
+ $this->fullordersmt->save(array('waybill'=>$msg,'state'=>209,'dlz'=>2),$id);
|
|
|
+ echo json_encode(array('msg'=>'声明失败:'.$result['error_msg'],'success'=>false));exit;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
else
|