fixed setting

This commit is contained in:
Edward Yang 2022-07-04 18:14:45 +08:00
parent 339560cf9d
commit 3f0546a6e2
3 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class CustomerController extends Controller
'customer_groups' => CustomerGroupRepo::list(),
'addresses' => AddressResource::collection($addresses),
'countries' => CountryRepo::all(),
'country_id' => setting('country_id'),
'country_id' => setting('system.country_id'),
'_redirect' => $this->getRedirect(),
];

View File

@ -26,8 +26,8 @@ class AccountService
*/
public static function register(array $data): Customer
{
$data['customer_group_id'] = setting('default_customer_group_id', 1); // default_customer_group_id为默认客户组名称
$data['status'] = !setting('approve_customer'); // approve_customer为是否需要审核客户
$data['customer_group_id'] = setting('system.default_customer_group_id', 1); // default_customer_group_id为默认客户组名称
$data['status'] = !setting('system.approve_customer'); // approve_customer为是否需要审核客户
$data['from'] = $data['from'] ?? 'pc';
$data['locale'] = locale();

View File

@ -120,7 +120,7 @@ class CheckoutService
'payment_address_id' => $this->cart->payment_address_id,
'payment_method_code' => $this->cart->payment_method_code,
],
'country_id' => (int)setting('country_id'),
'country_id' => (int)setting('system.country_id'),
'customer_id' => $customer->id ?? null,
'countries' => CountryRepo::all(),
'addresses' => $addresses,