ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 编辑 ~~~ empty($I_U->power([sbh_per.'_all'])) ? $U_P->back($json,'尚未授权['.__LINE__.']') : NULL; //>对空值进行判定 isset($para[sbh_id]) ? NULL : $U_P->back($json,'参数缺失['.__LINE__.']'); isset($name) ? NULL : $U_P->back($json,'参数缺失['.__LINE__.']'); isset($sort) ? NULL : $U_P->back($json,'参数缺失['.__LINE__.']'); //>剔除非处理值 unset($para['P']); unset($para['sbh_type']); //>参数数据变更 $enable = empty($enable) ? 0 : 1; $field = []; foreach ($para as $keyword => $value) { $field[$keyword] = $value; } $field['enable'] = $enable; $where = []; $where[] = '`'.sbh_id.'`="'.$para[sbh_id].'"'; $back = $D_P->edit(sbh_table,$field,$where); empty($back['succeed']) ? $U_P->back($json,'数据处理失败['.__LINE__.']') : NULL; ~~~