|
@@ -7,13 +7,14 @@ |
|
@@ -7,13 +7,14 @@ |
|
7
|
* @time :2024/2/26 9:23
|
7
|
* @time :2024/2/26 9:23
|
|
8
|
*/
|
8
|
*/
|
|
9
|
|
9
|
|
|
10
|
-namespace App\Http\Controllers\Aside\Com;
|
10
|
+namespace App\Http\Controllers\Aside\KeywordVideo;
|
|
11
|
|
11
|
|
|
12
|
use App\Enums\Common\Code;
|
12
|
use App\Enums\Common\Code;
|
|
13
|
use App\Http\Controllers\Aside\BaseController;
|
13
|
use App\Http\Controllers\Aside\BaseController;
|
|
14
|
use App\Models\Com\KeywordVideoTask;
|
14
|
use App\Models\Com\KeywordVideoTask;
|
|
15
|
use App\Models\Com\KeywordVideoTaskLog;
|
15
|
use App\Models\Com\KeywordVideoTaskLog;
|
|
16
|
use App\Models\Domain\DomainInfo;
|
16
|
use App\Models\Domain\DomainInfo;
|
|
|
|
17
|
+use Illuminate\Support\Facades\Cache;
|
|
17
|
|
18
|
|
|
18
|
class KeywordVideoController extends BaseController
|
19
|
class KeywordVideoController extends BaseController
|
|
19
|
{
|
20
|
{
|
|
@@ -114,6 +115,8 @@ class KeywordVideoController extends BaseController |
|
@@ -114,6 +115,8 @@ class KeywordVideoController extends BaseController |
|
114
|
'status'=>$this->param['status'] ?? 0,
|
115
|
'status'=>$this->param['status'] ?? 0,
|
|
115
|
'sort'=>$this->param['sort'] ?? 0,
|
116
|
'sort'=>$this->param['sort'] ?? 0,
|
|
116
|
'keywords'=>$this->param['keywords'] ?? '',
|
117
|
'keywords'=>$this->param['keywords'] ?? '',
|
|
|
|
118
|
+ 'logo_img'=>$this->param['logo_img'] ?? '',
|
|
|
|
119
|
+ 'template_data'=>isset($this->param['template_data']) ? json_encode($this->param['template_data'],true) : null
|
|
117
|
];
|
120
|
];
|
|
118
|
$rs = $keywordModel->add($data);
|
121
|
$rs = $keywordModel->add($data);
|
|
119
|
if($rs === false){
|
122
|
if($rs === false){
|
|
@@ -193,4 +196,23 @@ class KeywordVideoController extends BaseController |
|
@@ -193,4 +196,23 @@ class KeywordVideoController extends BaseController |
|
193
|
$count = $taskLogModel->formatQuery(['created_at'=>['between',[$start_of_month,$end_of_month]]])->count();
|
196
|
$count = $taskLogModel->formatQuery(['created_at'=>['between',[$start_of_month,$end_of_month]]])->count();
|
|
194
|
$this->response('success',Code::SUCCESS,['count'=>$count]);
|
197
|
$this->response('success',Code::SUCCESS,['count'=>$count]);
|
|
195
|
}
|
198
|
}
|
|
|
|
199
|
+
|
|
|
|
200
|
+ /**
|
|
|
|
201
|
+ * @remark :获取模版库模版
|
|
|
|
202
|
+ * @name :get_template
|
|
|
|
203
|
+ * @author :lyh
|
|
|
|
204
|
+ * @method :post
|
|
|
|
205
|
+ * @time :2024/11/1 11:48
|
|
|
|
206
|
+ */
|
|
|
|
207
|
+ public function get_template(){
|
|
|
|
208
|
+ $data = Cache::get('template_data');
|
|
|
|
209
|
+ if(empty($data)){
|
|
|
|
210
|
+ $url = 'http://216.250.255.116:7866/get_template';
|
|
|
|
211
|
+ $header = [
|
|
|
|
212
|
+ 'accept: application/json'
|
|
|
|
213
|
+ ];
|
|
|
|
214
|
+ $data = http_get($url,$header);
|
|
|
|
215
|
+ }
|
|
|
|
216
|
+ $this->response('success',Code::SUCCESS,$data);
|
|
|
|
217
|
+ }
|
|
196
|
} |
218
|
} |