Skip to content

Commit

Permalink
fix change the space
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Nov 11, 2024
1 parent 781ad61 commit c3ed035
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/Api/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function productDetail($slug, Request $request) {
$ip_country = $request->server('HTTP_CF_IPCOUNTRY');

// currency by ip
$currency = \Nicelizhi\OneBuy\Helpers\Utils::getCurrencyByCountry($ip_country);
$currency = \NexaMerchant\CheckoutOneBuy\Helpers\Utils::getCurrencyByCountry($ip_country);

$currency_get = $request->input('currency');
if(!empty($currency_get)) {
Expand Down Expand Up @@ -130,7 +130,7 @@ public function productDetail($slug, Request $request) {
}

$package_products = [];
$package_products = \Nicelizhi\OneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);
$package_products = \NexaMerchant\CheckoutOneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);
$product = new ProductResource($product);
$data['product'] = $product;
$data['package_products'] = $package_products;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Web/ProductController.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function detail($slug, Request $request) {
// 四个商品的价格情况
$package_products = [];
$productBaseImage = product_image()->getProductBaseImage($product);
$package_products = \Nicelizhi\OneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);
$package_products = \NexaMerchant\CheckoutOneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);

// 获取 faq 数据
$redis = Redis::connection('default');
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Web/ProductV2Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function detail($slug, Request $request) {
$package_products = [];
$productBaseImage = product_image()->getProductBaseImage($product);
//$package_products = $this->makeProducts($product, [2,1,3,4]);
$package_products = \Nicelizhi\OneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);
$package_products = \NexaMerchant\CheckoutOneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);


// skus 数据
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Web/ProductV3Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function detail($slug, Request $request) {
$package_products = [];
$productBaseImage = product_image()->getProductBaseImage($product);
//$package_products = $this->makeProducts($product, [2,1,3,4]);
$package_products = \Nicelizhi\OneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);
$package_products = \NexaMerchant\CheckoutOneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);

// 获取 faq 数据
$redis = Redis::connection('default');
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Web/ProductV4Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function detail($slug, Request $request) {

$package_products = [];
$productBaseImage = product_image()->getProductBaseImage($product);
$package_products = \Nicelizhi\OneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);
$package_products = \NexaMerchant\CheckoutOneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);

$skus = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Web/ProductV5Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function detail($slug, Request $request) {

$package_products = [];
$productBaseImage = product_image()->getProductBaseImage($product);
$package_products = \Nicelizhi\OneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);
$package_products = \NexaMerchant\CheckoutOneBuy\Helpers\Utils::makeProducts($product, [2,1,3,4]);

$skus = [];

Expand Down

0 comments on commit c3ed035

Please sign in to comment.