This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
43
{
44
if (!is_array($user_list)) {
45
$this->setError('参数必须为一个数组');
46
47
return false;
48
}
49
50
$this->module = 'user';
51
52
$res = $this->_post('info/batchget', $user_list);
53
54
return $res;
55
}
56
57
/**
58
* 获取用户Openid列表.
59
*
60
* @author Tian
61
*
62
* @param string $next_openid 下一个openid
63
*
64
* @return array Openid列表.
65
*/
66
public function getUserOpenidList($next_openid = '')
67
{
68
$queryStr = [
69
'next_openid' => $next_openid,
70
];
71
72
$res = $this->_get('get', $queryStr);
73
74
return $res;
75
}
76
77
/**
78
* 设置用户备注名.
79
*
80
* @author Tian
81
*
82
* @param string $openid 用户openid sting
83
* @param string $remark 用户备注名,长度必须小于30字符
84
*
85
* @return string bool.
86
*/
87
public function setUserRemark($openid, $remark = "")
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.