作者 lyh

gx脚本更新路由

... ... @@ -111,10 +111,12 @@ class ProductLogic extends BaseLogic
* @time :2024/12/18 10:25
*/
public function saveDetail($product_id,$detail){
$this->delProductDetail($product_id);
if(!empty($detail)){
try {
$this->delProductDetail($product_id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($detail, true) . PHP_EOL, FILE_APPEND);
foreach ($detail as $val){
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($val, true) . PHP_EOL, FILE_APPEND);
foreach ($val as $values){
//查看当前栏目是否存在
$columnId = $this->getColumnId($product_id,$values['column_name']);
... ...