|
@@ -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;
|