|
@@ -35,7 +35,7 @@ use App\Model\Website;
|
|
|
use App\Constants\ErrorCode;
|
|
|
use GuzzleHttp\Client;
|
|
|
use GuzzleHttp\Exception\GuzzleException;
|
|
|
-
|
|
|
+use App\Model\SectorPlace;
|
|
|
#[RpcService(name: "PublicRpcService", protocol: "jsonrpc-http", server: "jsonrpc-http")]
|
|
|
class PublicRpcService implements PublicRpcServiceInterface
|
|
|
{
|
|
@@ -1524,4 +1524,18 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
|
}
|
|
|
return Result::success($template);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 自助建站-通栏管理-获取通栏位置
|
|
|
+ */
|
|
|
+ public function getSectorPlace(array $data): array
|
|
|
+ {
|
|
|
+ $template = SectorPlace::where('sector_place.sector_num', $data['sector_num'])
|
|
|
+ ->leftJoin('size','sector_place.size_id','=','size.id')
|
|
|
+ ->select('sector_place.*','size.width','size.height')
|
|
|
+ ->get()->all();
|
|
|
+ if(empty($template)){
|
|
|
+ return Result::error('未查询到通栏位置相关模版!');
|
|
|
+ }
|
|
|
+ return Result::success($template);
|
|
|
+ }
|
|
|
}
|