15954078560 3 年之前
父節點
當前提交
0613438f0f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/common/controller/Api.php

+ 1 - 1
application/common/controller/Api.php

@@ -166,7 +166,7 @@ class Api
      */
     protected function success($msg = '', $data = null, $code = 1, $type = null, array $header = [])
     {
-        if (is_array($data)) {
+        if ($data && in_array(request()->action(), ['getLikeList', 'getFansList', 'getFate', 'getUserInfo'])) {
             //手机号/微信号  私钥加密
 //            $private_key = "-----BEGIN RSA PRIVATE KEY-----" .PHP_EOL.
 //                wordwrap(config('private_key'), 64, PHP_EOL, true) .