作者 lyh

gx

@@ -6,6 +6,7 @@ use App\Helper\FormGlobalsoApi; @@ -6,6 +6,7 @@ use App\Helper\FormGlobalsoApi;
6 use App\Http\Logic\Bside\BaseLogic; 6 use App\Http\Logic\Bside\BaseLogic;
7 use App\Models\HomeCount\Count; 7 use App\Models\HomeCount\Count;
8 use App\Models\HomeCount\MonthCount; 8 use App\Models\HomeCount\MonthCount;
  9 +use App\Models\Project\DeployOptimize;
9 use Carbon\Carbon; 10 use Carbon\Carbon;
10 use Illuminate\Support\Facades\DB; 11 use Illuminate\Support\Facades\DB;
11 12
@@ -186,6 +187,8 @@ class MonthCountLogic extends BaseLogic @@ -186,6 +187,8 @@ class MonthCountLogic extends BaseLogic
186 * @time :2023/7/4 10:19 187 * @time :2023/7/4 10:19
187 */ 188 */
188 public function getKeywordLists(){ 189 public function getKeywordLists(){
189 - $optimizeModel = new index(); 190 + $optimizeModel = new DeployOptimize();
  191 + $info = $optimizeModel->read(['project_id'=>$this->user['project_id']],['main_keywords','customer_keywords']);
  192 + return $this->success($info);
190 } 193 }
191 } 194 }
@@ -102,10 +102,10 @@ class Base extends Model @@ -102,10 +102,10 @@ class Base extends Model
102 * @author :liyuhang 102 * @author :liyuhang
103 * @method get 103 * @method get
104 */ 104 */
105 - public function read($condition,$files = ['*']) 105 + public function read($condition,$filed = ['*'])
106 { 106 {
107 $query = $this->formatQuery($condition); 107 $query = $this->formatQuery($condition);
108 - $info = $query->select($files)->first(); 108 + $info = $query->select($filed)->first();
109 if (empty($info)) { 109 if (empty($info)) {
110 return false; 110 return false;
111 } 111 }
@@ -297,6 +297,7 @@ Route::middleware(['bloginauth'])->group(function () { @@ -297,6 +297,7 @@ Route::middleware(['bloginauth'])->group(function () {
297 Route::prefix('month')->group(function () { 297 Route::prefix('month')->group(function () {
298 Route::any('/', [\App\Http\Controllers\Bside\HomeCount\MonthCountController::class, 'lists'])->name('month_lists'); 298 Route::any('/', [\App\Http\Controllers\Bside\HomeCount\MonthCountController::class, 'lists'])->name('month_lists');
299 Route::any('/getIpPvCount', [\App\Http\Controllers\Bside\HomeCount\MonthCountController::class, 'getIpPvCount'])->name('month_getIpPvCount'); 299 Route::any('/getIpPvCount', [\App\Http\Controllers\Bside\HomeCount\MonthCountController::class, 'getIpPvCount'])->name('month_getIpPvCount');
  300 + Route::any('/getKeyword', [\App\Http\Controllers\Bside\HomeCount\MonthCountController::class, 'getKeyword'])->name('month_getKeyword');
300 }); 301 });
301 302
302 // 流量统计 303 // 流量统计