15954078560 3 năm trước cách đây
mục cha
commit
21a3ad09c1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ($data) {
+        if (is_array($data)) {
             //手机号/微信号  私钥加密
 //            $private_key = "-----BEGIN RSA PRIVATE KEY-----" .PHP_EOL.
 //                wordwrap(config('private_key'), 64, PHP_EOL, true) .