quanwei
2 days ago 04102f7237efefa744090ed7c25f7b5d0807b679
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
 
namespace app\supplier\model\user;
 
use app\common\model\user\User as UserModel;
/**
 * 收藏模型
 */
class User extends UserModel
{
    /**
     * 获取关注公众号的用户
     */
    public function getUserList($shop_supplier_id, $params)
    {
        $model = $this;
        if(isset($params['search']) && $params['search'] != ''){
            return $model->where('nickName|mobile', 'like', '%' . trim($params['search']) . '%')
                ->where('reg_source', '=', 'mp')
                ->paginate($params);
        }
    }
}