lgy 2 months ago
parent
commit
dd294bc86d
1 changed files with 7 additions and 1 deletions
  1. 7 1
      jcjyhr/app/common/controller/ZskkApiController.php

+ 7 - 1
jcjyhr/app/common/controller/ZskkApiController.php

@@ -37,7 +37,13 @@ class ZskkApiController extends Api
     {
         $key = 'zLxapoeqWYpoeqWY';
         $info = Gm::decrypt($key,$data);
-        return json_decode(base64_decode($info),true);
+        $return = json_decode(base64_decode($info),true);
+        if(empty($return))
+        {
+            return [];
+        }else{
+            return json_decode(base64_decode($info),true);
+        }
     }
 
     public function makeEncryptData($data)