Commit e06e76e5 authored by zhuwei's avatar zhuwei

区分城市

parent aecfa58c
......@@ -648,7 +648,7 @@ class User extends Basic
// dump($where);exit;
$field = 'a.id,a.user_id,b.user_nick,b.user_nick,b.agent_id,b.vip,b.create_time';
$model = new UPhoneFollowPp();
$model = new UPhoneFollowPp($this->siteId);
$model_res = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = 1, $order);
if (!$model_res) {
......
......@@ -497,7 +497,7 @@ class CallPhoneService
*/
public function defaultFollowUp()
{
$m_follow_up = new UPhoneFollowPp();
$m_follow_up = new UPhoneFollowPp($this->siteId);
$current_time = time();
$time = $current_time - 3600;
$start_date = date('Y-m-d', $time);
......
......@@ -162,7 +162,7 @@ class Label extends Basic
if (empty($this->params['user_id'])) {
return $this->response(101, '没有用户信息');
}
$follow = new UPhoneFollowPp();
$follow = new UPhoneFollowPp($this->siteId);
$user_status = $follow->getUserFollowKey('user_status', ['user_id'=>$this->params['user_id']], 'id DESC');
return $this->response(200, '', $user_status);
}
......
......@@ -43,7 +43,7 @@ class Remark extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$u_phone_follow = new UPhoneFollowPp();
$u_phone_follow = new UPhoneFollowPp($this->siteId);
if (!empty($this->params['start_date']) && empty($this->params['end_date'])) {
$where['create_time'] = [ '> time', $this->params['start_date'] . ' 00:00:00' ];
......
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