作者 lyh

gx

@@ -74,6 +74,9 @@ class ProjectLogic extends BaseLogic @@ -74,6 +74,9 @@ class ProjectLogic extends BaseLogic
74 if(empty($info['channel'])){ 74 if(empty($info['channel'])){
75 $info['channel'] = ["user_id"=>"", "zone_id"=>"", "channel_id"=>""]; 75 $info['channel'] = ["user_id"=>"", "zone_id"=>"", "channel_id"=>""];
76 } 76 }
  77 + if(empty($info['payment']['renewal_record'])){
  78 + $info['payment']['renewal_record'] = [["amount"=> null, "remark"=> null, "expire_at"=> null]];
  79 + }
77 return $this->success($info); 80 return $this->success($info);
78 } 81 }
79 82
@@ -59,6 +59,7 @@ class KeywordLogic extends BaseLogic @@ -59,6 +59,7 @@ class KeywordLogic extends BaseLogic
59 }else{ 59 }else{
60 $this->param['project_id'] = $this->user['project_id']; 60 $this->param['project_id'] = $this->user['project_id'];
61 $this->param['created_at'] = date('Y-m-d H:i:s'); 61 $this->param['created_at'] = date('Y-m-d H:i:s');
  62 + $this->param['title'] = $this->param['title'].'-tag';
62 $this->param['updated_at'] = $this->param['created_at']; 63 $this->param['updated_at'] = $this->param['created_at'];
63 $id = $this->model->insertGetId($this->param); 64 $id = $this->model->insertGetId($this->param);
64 //路由映射 65 //路由映射