ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 防SQL注入 | 传入参 | 说明 | | --- | --- | | type | [ 必填 ] 校对类型 (get , post , cookie) | | sql | [ 必填 ] 校对字符串 | | 回调参 | 说明 | | --- | --- | | [ bool ] | 校验结果 (1存在风险 0没有风险) | * 案例 ~~~ $back = $D_P->safe('get','aaa'); $back = $D_P->safe('get','select * from abc'); $back = $D_P->safe('post','select * from abc'); $back = $D_P->safe('cookie','select * from abc'); ~~~ >0 >1 >1 >1