|
@@ -1030,7 +1030,7 @@ if (!function_exists("get_default_public_channel_id")){
|
|
|
}
|
|
|
|
|
|
|
|
|
-if(function_exists('get_rejcet_cp_by_package_name')){
|
|
|
+if(!function_exists('get_rejcet_cp_by_package_name')){
|
|
|
function get_rejcet_cp($package = "",$isPackageId = 0){
|
|
|
if (empty($package)){
|
|
|
return false;
|
|
@@ -1042,4 +1042,22 @@ if(function_exists('get_rejcet_cp_by_package_name')){
|
|
|
$data = \DB::table('qapp_package_info')->where('id','=',$package)->value('cp_author_status');
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * 判断数据是否为空
|
|
|
+ * name: is_empty
|
|
|
+ * @param $data
|
|
|
+ * @return bool 空返回true 非空返回false
|
|
|
+ * date 2022/11/18 11:39
|
|
|
+ */
|
|
|
+if (!function_exists('is_empty')){
|
|
|
+ function is_empty($data): bool
|
|
|
+ {
|
|
|
+ if (is_object($data)){
|
|
|
+ return empty(get_object_vars($data));
|
|
|
+ }
|
|
|
+
|
|
|
+ return empty($data);
|
|
|
+ }
|
|
|
}
|