...
|
...
|
@@ -277,6 +277,7 @@ class LoginController extends Controller{ |
|
|
* @header name:XX-Token require:1 default: desc:token
|
|
|
* @param name:user_id type:varchar require:1 desc:用户id
|
|
|
* @param name:type type:int require:1 desc:1代充,2扣除
|
|
|
* @param name:money type:int require:1 desc:金额
|
|
|
*/
|
|
|
public function recharge()
|
|
|
{
|
...
|
...
|
@@ -317,7 +318,7 @@ class LoginController extends Controller{ |
|
|
$where['mobile']=['like','%'.$param['mobile'].'%'];
|
|
|
}
|
|
|
$where['user_type']=empty($param['user_type'])?['neq',1]:$param['user_type'];
|
|
|
$data=Db::name('user')->where($where)->field('id,user_type,user_login,mobile,money,qq,wx,parent_id')->paginate(10)->each(function ($item) {
|
|
|
$data=Db::name('user')->where($where)->field('id,user_type,user_login,mobile,money,qq,wx,parent_id,user_status')->paginate(10)->each(function ($item) {
|
|
|
$item['parent_id'] = Db::name('user') ->where('id',$item['parent_id'])->find()['user_login'];
|
|
|
return $item;
|
|
|
});
|
...
|
...
|
|