Commit 32847ffe authored by hujun's avatar hujun

time

parent 4ae50278
......@@ -31,7 +31,6 @@ class Label extends Basic
$labels = new GLabels();
$data['name'] = $this->params['name'];
$data['operation_id'] = Session::get('userId');
$data['create_time'] = date('Y-m-d H:i:s');
$data['type'] = $this->params['type'];
if ($this->params['id']) {
$result['data'] = $labels->save($data, ['id'=>$this->params['id']]);
......
......@@ -36,8 +36,6 @@ class AStore extends BaseModel
$store_data['district_id'] = $data['district_id'];
$store_data['code'] = implode('##',$code_arr);
$agents = new AAgents();
if ($data['id'] == '') {
$store_data['create_time'] = date('Y-m-d H:i:s');
$this->save($store_data);
......
......@@ -231,15 +231,6 @@ class GHouses extends BaseModel
* @throws \think\exception\DbException
*/
public function add($params) {
$date = date('Y-m-d H:i:s');
if ($params['id']) {
$params['update_time'] = $date;
} else {
$params['create_time'] = $date;
$params['update_time'] = $date;
}
$case = new ACase();
$case_id = $case->addCase($params['phone']);
$params['case_id'] = $case_id;
......
......@@ -23,9 +23,6 @@ class GHousesImgs extends BaseModel
*/
public function add($params, $house_id)
{
$date = date('Y-m-d H:i:s');
$params['create_time'] = $date;
$params['update_time'] = $date;
$count = 0;
$insert_img = array();
//1列表页封面图
......
......@@ -7,12 +7,6 @@ use think\Model;
class GHousesToAgents extends BaseModel
{
protected $table = 'g_houses_to_agents';
protected $date = '';
public function __construct()
{
$this->date = date('Y-m-d H:i:s');
}
/**
* @param $agents_id
......@@ -26,7 +20,6 @@ class GHousesToAgents extends BaseModel
*/
public function addAgents($agents_id, $houses_id, $type){
$agent_arr = array();
$date = date('Y-m-d H:i:s');
$agents_id = array_unique(explode(',',$agents_id));
$where['type'] = $type;
......@@ -53,7 +46,6 @@ class GHousesToAgents extends BaseModel
if (!in_array($v['agents_id'], $agents_id) && ($type == $v['type']) && ($v['agents_id'] != NULL)) {
$agent_arr[$key]['id'] = $v['id'];
$agent_arr[$key]['is_del'] = 1;
$agent_arr[$key]['update_time'] = $date;
$key++;
if ($type == 2) {
......@@ -75,8 +67,6 @@ class GHousesToAgents extends BaseModel
$agent_arr[$key]['agents_id'] = $v;
$agent_arr[$key]['houses_id'] = $houses_id;
$agent_arr[$key]['type'] = $type;
$agent_arr[$key]['create_time'] = $this->date;
$agent_arr[$key]['update_time'] = $this->date;
$key++;
if ($type == 2) {
......
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