feat: 新增商品 Excel 匯入功能與修復 HTTPS 混合內容問題
1. 新增商品 Excel 匯入功能 (ProductImport, Export Template) 2. 調整商品代號驗證規則為 1-5 碼 (Controller & Import) 3. 修正 HTTPS Mixed Content 問題 (AppServiceProvider)
This commit is contained in:
@@ -18,8 +18,8 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
// 如果是在正式環境,強制轉為 https
|
||||
if (config('app.env') === 'production') {
|
||||
// 如果是在正式環境或 APP_URL 是 https,強制轉為 https
|
||||
if ($this->app->environment('production') || str_contains(config('app.url'), 'https')) {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user