lgy 2 weeks ago
parent
commit
6c3ed562b4
1 changed files with 6 additions and 1 deletions
  1. 6 1
      jcjyhr/app/common/controller/ApiController.php

+ 6 - 1
jcjyhr/app/common/controller/ApiController.php

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