|
...
|
...
|
@@ -10,6 +10,7 @@ |
|
|
|
namespace App\Http\Controllers\Bside\BCom;
|
|
|
|
|
|
|
|
use App\Http\Controllers\Bside\BaseController;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :b端网站更新相关
|
|
...
|
...
|
@@ -20,5 +21,44 @@ use App\Http\Controllers\Bside\BaseController; |
|
|
|
*/
|
|
|
|
class UpdateController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @remark :一键更新所有tdk
|
|
|
|
* @name :updateSeoTdk
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/8/19 9:25
|
|
|
|
*/
|
|
|
|
public function updateSeoTdk(){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :更新产品tdk
|
|
|
|
* @name :updateProduct
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/8/19 9:25
|
|
|
|
*/
|
|
|
|
public function updateProduct(){
|
|
|
|
$productModel = new Product();
|
|
|
|
$list = $productModel->list(['status'=>Product::STATUS_ON,'project_id'=>$this->user['project_id'],'deleted_at'=>null]);
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
if(!empty($v['seo_mate'])){
|
|
|
|
$seo_arr = json_decode($v['seo_mate']);
|
|
|
|
//更新seo_title
|
|
|
|
if(!isset($seo_arr['title']) || empty($seo_arr['title'])){
|
|
|
|
|
|
|
|
}
|
|
|
|
//更新seo_keyword
|
|
|
|
if(!isset($seo_arr['keyword']) || empty($seo_arr['keyword'])){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//更新seo_keyword
|
|
|
|
if(!isset($seo_arr['keyword']) || empty($seo_arr['keyword'])){
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|