作者 lyh

gx

... ... @@ -120,4 +120,15 @@ class Common
}
return true;
}
/**
* @name :(多维数组去重)array_deduplication
* @author :lyh
* @method :post
* @time :2023/5/9 10:47
*/
public static function array_deduplication($arr){
$uniqueArray = array_map('json_decode', array_unique(array_map('json_encode', $arr)));
return $uniqueArray;
}
}
... ...
... ... @@ -53,5 +53,13 @@ class AyrReleaseLogic extends BaseLogic
return $this->success();
}
public function post_
/**
* @name :(发布到youtube)post_youtube
* @author :lyh
* @method :post
* @time :2023/5/9 10:22
*/
public function post_youtube(){
return $this->success();
}
}
... ...
... ... @@ -39,6 +39,7 @@ class WebSettingServiceLogic extends BaseLogic
//删除以前的数据
$this->model->del(['project_id'=>$this->user['project_id']]);
foreach ($this->param['data'] as $k => $v){
//查询数据是否在数组中存在
$v['project_id'] = $this->user['project_id'];
$this->param['data'][$k] = $v;
}
... ...