Browse Source

smt的发货声明提交

lvhao 3 months ago
parent
commit
fc39ea7940
1 changed files with 6 additions and 7 deletions
  1. 6 7
      core/CoreApp/controllers/Fullordersmt.php

+ 6 - 7
core/CoreApp/controllers/Fullordersmt.php

@@ -2230,11 +2230,9 @@ class Fullordersmt extends Start_Controller {
 				}
 				else if($d['dlz'] == '0')//未发货声明状态
 				{
-					$result = $this->apismt->get_out($msg,'all',$d['orderinfo'],$ex['aecode'],$shop['code']);
-					echo "<pre>";
-					print_r($result);
-					die;
-					if(isset($result['result_success']) && $result['result_success'] == "true")
+					$result_t = $this->apismt->get_out($msg,'all',$d['orderinfo'],$ex['aecode'],$shop['code']);
+					$result = $result_t['result'];
+					if(isset($result['success']) && $result['success'] == "true")
 					{
 						$this->fullordersmt->save(array('waybill'=>$msg,'state'=>209,'dlz'=>1),$id);
 						/** 合并信息处理开始-发货声明 **/
@@ -2243,8 +2241,9 @@ class Fullordersmt extends Start_Controller {
 							$hdata = $this->fullordersmt->find_all("merge = '".$d['merge']."' and id != '".$d['id']."' and dlz = '0' and source != 1");$i=0;
 							foreach ($hdata as $v) 
 							{
-								$result = $this->apismt->get_out($msg,'all',$v['orderinfo'],$ex['aecode'],$shop['code']);
-					            if(isset($result['result_success']) && $result['result_success'] == "true")
+								$result_t = $this->apismt->get_out($msg,'all',$v['orderinfo'],$ex['aecode'],$shop['code']);
+								$result = $result_t['result'];
+					            if(isset($result['success']) && $result['success'] == "true")
 					            {
 									 $this->fullordersmt->save(array('waybill'=>$msg,'state'=>209,'dlz'=>1),$v['id']);
 								}