Commit 9a411729 authored by 蔡闯's avatar 蔡闯

2021-6-25

parent b6c44cec
...@@ -34,6 +34,13 @@ class Message extends Base ...@@ -34,6 +34,13 @@ class Message extends Base
$list[$k]['from'] = "睿者招商"; $list[$k]['from'] = "睿者招商";
break; break;
} }
if($v['business']) {
$bus_ids = explode(',',$v['business']);
$bus_name = Db::name('business')->whereIn('id',$bus_ids)->column('name');
$data[$k]['business'] = implode('/',$bus_name);
} else {
$data[$k]['business'] = "";
}
} }
$count = Db::name('message')->count(); $count = Db::name('message')->count();
$res['total'] = $count; $res['total'] = $count;
......
...@@ -25,6 +25,7 @@ class Message extends BaseController { ...@@ -25,6 +25,7 @@ class Message extends BaseController {
$data['create_time'] = time(); $data['create_time'] = time();
$data['phone'] = Request::param('phone'); $data['phone'] = Request::param('phone');
$data['business'] = Request::param('business',''); $data['business'] = Request::param('business','');
$data['is_join'] = Request::param('is_join',1);
$add = Db::name('message')->insert($data); $add = Db::name('message')->insert($data);
if($add) { if($add) {
return $this->returnJson([],200); return $this->returnJson([],200);
......
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