|
@@ -866,4 +866,26 @@ if (!function_exists("check_qapp_send_order_id)")){
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+ * 判断包是否是公共包
|
|
|
+ * name: is_public_package
|
|
|
+ * @param string $packageName
|
|
|
+ * @return bool
|
|
|
+ * date 2022/09/22 16:53
|
|
|
+ */
|
|
|
+if(!function_exists("is_public_package")){
|
|
|
+ function is_public_package($packageName = "")
|
|
|
+ {
|
|
|
+ if (empty($packageName)){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $publicPackageName = config("package.package_name");
|
|
|
+ if (in_array($packageName,$publicPackageName)){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|