💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
* 编辑 ~~~ 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; ~~~