Commit e9867fbb authored by hujun's avatar hujun

查询经纪人id

parent 7a5286e5
...@@ -26,6 +26,9 @@ class PrivacyNumber ...@@ -26,6 +26,9 @@ class PrivacyNumber
$report = new SecretReport(); $report = new SecretReport();
$post_data[0]['report_id'] = $post_data[0]['id']; $post_data[0]['report_id'] = $post_data[0]['id'];
unset($post_data[0]['id']); unset($post_data[0]['id']);
if ($post_data[0]['phone_no']) {
$post_data[0]['agents_id'] = Db::table('a_agents')->where('phone',$post_data[0]['phone_no'])->value('id');
}
$report->allowField(true)->save($post_data[0]); $report->allowField(true)->save($post_data[0]);
Log::write(serialize($post_data[0]),'AliyunSecretReport'); //记录日志 Log::write(serialize($post_data[0]),'AliyunSecretReport'); //记录日志
return json_encode(['code'=>0,'msg'=>'接收成功']); return json_encode(['code'=>0,'msg'=>'接收成功']);
......
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