作者 lyh

gx

... ... @@ -555,3 +555,8 @@ if(!function_exists('curlGet')){
return json_decode($access_txt, true);
}
}
function ends_with($string, $suffix)
{
return substr($string, -strlen($suffix)) === $suffix;
}
... ...
... ... @@ -182,7 +182,7 @@ class CustomTemplateLogic extends BaseLogic
];
$this->setRouteDeleteSave($data);
//"字符串以\"-product\"结尾"
if (!endsWith($route, "-tag")) {
if (!ends_with($route, "-tag")) {
$route = $route."-tag";
}
}
... ...
... ... @@ -216,7 +216,7 @@ class ProductLogic extends BaseLogic
];
$this->setRouteDeleteSave($data);
//"字符串以\"-product\"结尾"
if (!endsWith($route, "-product")) {
if (!ends_with($route, "-product")) {
$route = $route."-product";
}
}
... ...