Browse Source

同步失败的报错,屏蔽

lizhen_gitee 9 months ago
parent
commit
0ee2e6d499
1 changed files with 4 additions and 3 deletions
  1. 4 3
      application/api/controller/Tvindex.php

+ 4 - 3
application/api/controller/Tvindex.php

@@ -569,11 +569,12 @@ class Tvindex extends Api
         $rt = httpRequest($url, 'POST', $content);
         file_put_contents('bofang.txt',$id.'_'.$rt.PHP_EOL, FILE_APPEND);
         if (!$rt) {
-            $this->error('同步失败');
+            //$this->error('同步失败');
         }
         $rt = json_decode($rt, true);
-        if ($rt['code'] != 0) {
-            $this->error('同步失败');
+
+        if (isset($rt['code']) && $rt['code'] != 0) {
+            //$this->error('同步失败');
         }
 
         $this->success('同步成功');