소스 검색

修改手动提交ges对速卖通的消息

lvhao 2 일 전
부모
커밋
d3f1edf5e3
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 2
      core/CoreApp/controllers/Fullordersmt.php

+ 8 - 2
core/CoreApp/controllers/Fullordersmt.php

@@ -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