소스 검색

提交数据

lvhao 5 일 전
부모
커밋
68e0c06425
1개의 변경된 파일16개의 추가작업 그리고 11개의 파일을 삭제
  1. 16 11
      core/CoreApp/controllers/Zzququeu9.php

+ 16 - 11
core/CoreApp/controllers/Zzququeu9.php

@@ -1015,23 +1015,28 @@ class Zzququeu9 extends Start_Controller {
                     $error = $this->zzququeu9_logs->find_all("oid = ".$v['id']." and one_type = 20 and two_type = 1 ","*",'id desc',0,1);
                    
                     $tmp_str= "";
-                    $ret_data = json_decode($error[0]['ret_data'],true);
-                    if(isset($ret_data[0]["ResMsg"])){
-                              $tmp_str = $ret_data[0]["ResMsg"];
-                    }elseif(isset($ret_data['msg'])){
-                         $tmp_str = $ret_data['msg'];
-                    }elseif(isset($ret_data['Data'])){
-                         foreach($ret_data['Data'] as $iit){
-                              if(!$iit['m_isSucess']){
-                                   $tmp_str .= $iit['m_errorMsg']."<br>";
+                    if(isset($error[0]['ret_data'])){
+                         $ret_data = json_decode($error[0]['ret_data'],true);
+                         if(isset($ret_data[0]["ResMsg"])){
+                                   $tmp_str = $ret_data[0]["ResMsg"];
+                         }elseif(isset($ret_data['msg'])){
+                              $tmp_str = $ret_data['msg'];
+                         }elseif(isset($ret_data['Data'])){
+                              foreach($ret_data['Data'] as $iit){
+                                   if(!$iit['m_isSucess']){
+                                        $tmp_str .= $iit['m_errorMsg']."<br>";
+                                   }
+                                   
                               }
                               
+                         }else{
+                                   $tmp_str = "系统执行失败,请重试";
                          }
                          
                     }else{
-                              $tmp_str = "系统执行失败,请重试";
+                         $tmp_str = "";
                     }
-                    
+                   
                     $bzsh_no = "<span data-action='wxcprk' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>".'<p style="color:blue"><i  class="method fa fa-exclamation-circle" data-t="'.$tmp_str.'"></i><p>';
                }elseif($v['bzsh_status'] == 1){
                     $bzsh_no = $v['bzsh_no']."<br/><span data-action='wxcprksh' data-process='1' data-id='".$v['id']."' onclick='doAction(this)'>创建成品入库单</span>";