nginx和apphtml5下的store.php都配置过了。在PC上访问apphtml5.myweb.com正常,在手机上则报错:
/www/web/fecshop/vendor/fancyecommerce/fecshop/services/Store.phpat line 159
if($currentC != $headers['fecshop-currency']){ Yii::$service->page->currency->setCurrentCurrency($headers['fecshop-currency']); } } break; } } }
if (!$init_compelte) { throw new InvalidValueException('this domain is not config in store component'); } }
store.php的部分配置如下:
'www.myweb.com' => [
'language' => 'zh_CN',
'languageName' => '中文',
'localThemeDir' => '@appfront/theme/terry/theme01',
'thirdThemeDir' => [],
'currency' => 'CNY',
'mobile' => [
'enable' => true,
'condition' => ['phone', 'tablet'],
'redirectDomain' => 'apphtml5.myweb.com',
'https' => false, // 手机端url是否支持https,如果支持,设置https为true,如果不支持,设置为false
],
请问要排查哪一块呢?我设置的默认语言为中文,在web下另建了en目录。