|
@@ -2230,11 +2230,9 @@ class Fullordersmt extends Start_Controller {
|
|
}
|
|
}
|
|
else if($d['dlz'] == '0')//未发货声明状态
|
|
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);
|
|
$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;
|
|
$hdata = $this->fullordersmt->find_all("merge = '".$d['merge']."' and id != '".$d['id']."' and dlz = '0' and source != 1");$i=0;
|
|
foreach ($hdata as $v)
|
|
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']);
|
|
$this->fullordersmt->save(array('waybill'=>$msg,'state'=>209,'dlz'=>1),$v['id']);
|
|
}
|
|
}
|