Commit 9e6ebfa6 authored by hujun's avatar hujun

邀请人

parent c5c2fa1e
...@@ -293,7 +293,6 @@ class Users extends Model ...@@ -293,7 +293,6 @@ class Users extends Model
if (!empty($data['user_label'])) { if (!empty($data['user_label'])) {
$insert_data['user_label'] = $data['user_label']; $insert_data['user_label'] = $data['user_label'];
} }
if (!empty($data['industry_type'])) { if (!empty($data['industry_type'])) {
$insert_data['industry_type'] = $data['industry_type']; $insert_data['industry_type'] = $data['industry_type'];
} }
...@@ -319,6 +318,13 @@ class Users extends Model ...@@ -319,6 +318,13 @@ class Users extends Model
$m_phone = new AliYunPhone(); $m_phone = new AliYunPhone();
$num = $m_phone->where('phone_x', $data['user_phone'])->count(); //查询隐私号码 $num = $m_phone->where('phone_x', $data['user_phone'])->count(); //查询隐私号码
if ($num == 0) { if ($num == 0) {
//邀请人
if (!empty($data['referrer_id']) && !empty($data['referrer_source'])) {
$insert_data['referrer_id'] = $data['referrer_id'];
$insert_data['referrer_source'] = $data['referrer_source'];
}
$insert_data['source'] = 20; $insert_data['source'] = 20;
$insert_data['status'] = -1; $insert_data['status'] = -1;
$insert_data['create_time'] = date('Y-m-d H:i:s'); $insert_data['create_time'] = date('Y-m-d H:i:s');
......
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