feat: API調整訂單與販賣機訂單同步強制使用warehouse_code,更新API對接文件,及優化生產與配方模組UI顯示
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 55s
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 55s
This commit is contained in:
@@ -22,6 +22,10 @@ Route::get('/api/docs', function () {
|
||||
|
||||
$markdown = file_get_contents($path);
|
||||
|
||||
// 動態替換 API Base URL 的租戶網域
|
||||
$currentHost = request()->getHost();
|
||||
$markdown = str_replace('[租戶網域]', $currentHost, $markdown);
|
||||
|
||||
// 解析 Markdown 內容
|
||||
$content = Illuminate\Support\Str::markdown($markdown, [
|
||||
'html_input' => 'strip',
|
||||
|
||||
Reference in New Issue
Block a user