|
...
|
...
|
@@ -7,13 +7,14 @@ |
|
|
|
* @time :2024/2/26 9:23
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Aside\Com;
|
|
|
|
namespace App\Http\Controllers\Aside\KeywordVideo;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Aside\BaseController;
|
|
|
|
use App\Models\Com\KeywordVideoTask;
|
|
|
|
use App\Models\Com\KeywordVideoTaskLog;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
|
|
|
|
class KeywordVideoController extends BaseController
|
|
|
|
{
|
|
...
|
...
|
@@ -114,6 +115,8 @@ class KeywordVideoController extends BaseController |
|
|
|
'status'=>$this->param['status'] ?? 0,
|
|
|
|
'sort'=>$this->param['sort'] ?? 0,
|
|
|
|
'keywords'=>$this->param['keywords'] ?? '',
|
|
|
|
'logo_img'=>$this->param['logo_img'] ?? '',
|
|
|
|
'template_data'=>isset($this->param['template_data']) ? json_encode($this->param['template_data'],true) : null
|
|
|
|
];
|
|
|
|
$rs = $keywordModel->add($data);
|
|
|
|
if($rs === false){
|
|
...
|
...
|
@@ -193,4 +196,23 @@ class KeywordVideoController extends BaseController |
|
|
|
$count = $taskLogModel->formatQuery(['created_at'=>['between',[$start_of_month,$end_of_month]]])->count();
|
|
|
|
$this->response('success',Code::SUCCESS,['count'=>$count]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取模版库模版
|
|
|
|
* @name :get_template
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/11/1 11:48
|
|
|
|
*/
|
|
|
|
public function get_template(){
|
|
|
|
$data = Cache::get('template_data');
|
|
|
|
if(empty($data)){
|
|
|
|
$url = 'http://216.250.255.116:7866/get_template';
|
|
|
|
$header = [
|
|
|
|
'accept: application/json'
|
|
|
|
];
|
|
|
|
$data = http_get($url,$header);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|