作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !2798
@@ -979,6 +979,18 @@ class ProductLogic extends BaseLogic @@ -979,6 +979,18 @@ class ProductLogic extends BaseLogic
979 } 979 }
980 } 980 }
981 } 981 }
  982 + $exist_attr_keys = array_column($attrs,'key');//已存在的参数key
  983 + for($i=12;$i<count($data);$i++){
  984 + if($data[$i] ?? ''){
  985 + $data_i_array = explode('^v6sp$',$data[$i]);
  986 + if(count($data_i_array) == 2 && !in_array($data_i_array[0],$exist_attr_keys)){
  987 + $attrs[] = [
  988 + 'key' => $data_i_array[0],
  989 + 'value' => $data_i_array[1]
  990 + ];
  991 + }
  992 + }
  993 + }
982 //处理描述切换栏 994 //处理描述切换栏
983 $describe = []; 995 $describe = [];
984 if($data[11]??''){ 996 if($data[11]??''){
@@ -319,7 +319,7 @@ class UserLoginLogic @@ -319,7 +319,7 @@ class UserLoginLogic
319 $info['is_amp'] = $is_amp; 319 $info['is_amp'] = $is_amp;
320 $info['is_three_code'] = $project['is_three_code'] ?? 0; 320 $info['is_three_code'] = $project['is_three_code'] ?? 0;
321 //产品,新闻,博客导入模板 321 //产品,新闻,博客导入模板
322 - $info['import_products_url'] = 'https://ecdn6.globalso.com/upload/p/1/file/2024-12/products.csv'; 322 + $info['import_products_url'] = 'https://ecdn6.globalso.com/upload/p/1/file/2025-09/products-1.csv';
323 $info['import_news_url'] = 'https://ecdn6.globalso.com/upload/p/1/file/2024-12/news.csv'; 323 $info['import_news_url'] = 'https://ecdn6.globalso.com/upload/p/1/file/2024-12/news.csv';
324 $info['import_blogs_url'] = 'https://ecdn6.globalso.com/upload/p/1/file/2024-12/blogs.csv'; 324 $info['import_blogs_url'] = 'https://ecdn6.globalso.com/upload/p/1/file/2024-12/blogs.csv';
325 //缩略图宽度 325 //缩略图宽度