作者 lyh

变更数据

@@ -68,4 +68,17 @@ class GeoController extends BaseController @@ -68,4 +68,17 @@ class GeoController extends BaseController
68 $data = $this->logic->saveConfig($this->param); 68 $data = $this->logic->saveConfig($this->param);
69 $this->response('success', Code::SUCCESS, $data); 69 $this->response('success', Code::SUCCESS, $data);
70 } 70 }
  71 +
  72 + /**
  73 + * @remark :统计数据
  74 + * @name :getCount
  75 + * @author :lyh
  76 + * @method :post
  77 + * @time :2025/10/30 10:37
  78 + */
  79 + public function getCount()
  80 + {
  81 + $data = $this->logic->getCount();
  82 + $this->response('success', Code::SUCCESS, $data);
  83 + }
71 } 84 }
@@ -40,7 +40,7 @@ class GeoConfirmLogic extends BaseLogic @@ -40,7 +40,7 @@ class GeoConfirmLogic extends BaseLogic
40 public function saveConfirmContent($param) 40 public function saveConfirmContent($param)
41 { 41 {
42 try { 42 try {
43 - $info = $this->model->read(['project_id' => $param['project_id']]); 43 + $info = $this->model->read(['project_id' => $param['project_id'],'type' => $param['type']]);
44 if($info === false){ 44 if($info === false){
45 $id = $this->model->addReturnId($param); 45 $id = $this->model->addReturnId($param);
46 }else{ 46 }else{
@@ -97,4 +97,16 @@ class GeoLogic extends BaseLogic @@ -97,4 +97,16 @@ class GeoLogic extends BaseLogic
97 return $this->success(['id'=>$id]); 97 return $this->success(['id'=>$id]);
98 } 98 }
99 99
  100 + /**
  101 + * @remark :获取统计数据
  102 + * @name :getCount
  103 + * @author :lyh
  104 + * @method :post
  105 + * @time :2025/10/30 10:39
  106 + */
  107 + public function getCount()
  108 + {
  109 +
  110 + }
  111 +
100 } 112 }