Selaa lähdekoodia

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

lvhao 2 päivää sitten
vanhempi
commit
d3f1edf5e3
1 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  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