lvhao преди 6 дни
родител
ревизия
e22a7298f6
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  1. 8 1
      core/CoreApp/controllers/Shop.php

+ 8 - 1
core/CoreApp/controllers/Shop.php

@@ -318,7 +318,14 @@ class Shop extends Start_Controller {
 	
 	public function _code($arg_array)
 	{
-		$shop = $this->shop->read($arg_array[0]);
+		
+		if(isset($arg_array[0])){
+			$shop = $this->shop->read($arg_array[0]);
+		}else{
+			$shop = [
+				'type'=>1
+			];
+		}
 		if($shop['type'] == 1514)
 		{
 			header('Location:https://services.us.tiktokshop.com/open/authorize?service_id='.$shop['codeid']);exit;