lizhen_gitee 3 anni fa
parent
commit
6e3c9676ef
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      application/api/controller/Recharge.php

+ 1 - 1
application/api/controller/Recharge.php

@@ -39,7 +39,7 @@ class Recharge extends Api
             'mobile'=>$mobile,
         ];
 
-        $user_info = Db::name('user')->field('username,nickname')->where($map)->select();
+        $user_info = Db::name('user')->field('username,nickname')->where($map)->find();
         if (empty($user_info)) {
             $this->error('用户信息不存在');
         }