|
|
@@ -184,11 +184,11 @@ class AdService implements AdServiceInterface
|
|
|
* @param array $data
|
|
|
* @return array
|
|
|
*/
|
|
|
- public function updateAdPlace(array $data): array
|
|
|
+ public function updateAdPlace(array $data): array
|
|
|
{
|
|
|
- $where = [
|
|
|
- 'ad_place.id'=>$data['id']
|
|
|
- ];
|
|
|
+ $where = [
|
|
|
+ 'ad_place.id'=>$data['id']
|
|
|
+ ];
|
|
|
// $website_id = intval($data['website_id']);
|
|
|
|
|
|
// 原代码 leftJoin 条件使用错误,第三个参数应该是关联字段,这里修正为 "website.id" 关联 "ad_place.website_id"
|
|
|
@@ -339,7 +339,7 @@ class AdService implements AdServiceInterface
|
|
|
return Result::error($e->getMessage());
|
|
|
}
|
|
|
// 自助建站广告位-广告位编辑同步模板数据-------fr----end
|
|
|
- }
|
|
|
+ }
|
|
|
/**
|
|
|
* 删除广告位
|
|
|
* @param array $data
|