Commit 3fab081d authored by hujun's avatar hujun

11

parent a1c06dda
......@@ -71,7 +71,7 @@ class CallPhoneService
if (!empty($user_id)) {
$this->user_id = $user_id;
$user_data = $this->getUserData($user_id);
$user_data = $this->getUserData();
if (empty($user_data['user_phone'])) {
return $this->response(101, '没有用户信息');
}
......@@ -407,9 +407,9 @@ class CallPhoneService
* @param string $field
* @return array|false|\PDOStatement|string|\think\Model
*/
public function getUserData($user_id,$field = 'user_phone') {
public function getUserData($field = 'user_phone') {
$m_user = new Users();
$data = $m_user->selectUser($user_id, $field);
$data = $m_user->selectUser($this->user_id, $field);
return $data;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment