Commit 85593150 authored by hujun's avatar hujun

方法修改

parent 063b643a
...@@ -300,7 +300,8 @@ class UPhoneFollowPp extends BaseModel ...@@ -300,7 +300,8 @@ class UPhoneFollowPp extends BaseModel
if ($user_id > 0) { if ($user_id > 0) {
try { try {
$user_data = Db::table('u_users')->field('province,city,disc')->find($user_id); $m_user = new Users();
$user_data = $m_user->selectUser($user_id, 'province,city,disc');
$data['province'] = $user_data['province']; $data['province'] = $user_data['province'];
$data['city'] = $user_data['city']; $data['city'] = $user_data['city'];
$data['disc'] = $user_data['disc']; $data['disc'] = $user_data['disc'];
...@@ -312,7 +313,7 @@ class UPhoneFollowPp extends BaseModel ...@@ -312,7 +313,7 @@ class UPhoneFollowPp extends BaseModel
} }
$data['type'] = $type; $data['type'] = $type;
return $this->insertGetId($data); return $this->UPhoneFollowPp->insertGetId($data);
} }
public function getLastPhoneFollowTime($user_id) public function getLastPhoneFollowTime($user_id)
......
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