feat(member): enhance product info processing and add new utility methods
- Updated `getProductInfo` method to return processed product information using `buildEffectiveProductInfo`. - Introduced new private methods for building effective product info, resolving software account levels, and checking special TikTok account status. - Refactored platform string handling with `appendPlatform` method to ensure unique and sorted platform entries. - Updated platform name mappings in `PlatformService` for consistency with new naming conventions.
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
use think\facade\Route;
|
||||
use app\api\controller\v1\Auth;
|
||||
use app\api\controller\v1\Platform;
|
||||
use app\api\controller\v1\PublishPlan;
|
||||
|
||||
/**
|
||||
* 全局路由入口。
|
||||
@@ -31,3 +32,10 @@ Route::group('api/v1/auth', function () {
|
||||
Route::group('api/v1/platform', function () {
|
||||
Route::get('accounts', [Platform::class, 'accounts']);
|
||||
})->middleware(\app\api\middleware\Auth::class);
|
||||
|
||||
// v1 发布计划接口(需登录)
|
||||
Route::group('api/v1/publish-plan', function () {
|
||||
Route::get('list', [PublishPlan::class, 'index']);
|
||||
Route::post('start/:id', [PublishPlan::class, 'start']);
|
||||
Route::post('stop/:id', [PublishPlan::class, 'stop']);
|
||||
})->middleware(\app\api\middleware\Auth::class);
|
||||
|
||||
Reference in New Issue
Block a user