ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 客服认证 | 传入参 | 说明 | | --- | --- | | signature | \[ 必填 \] 校对值1 | | timestamp | \[ 必填 \] 校对值2 | | nonce | \[ 必填 \] 校对值3 | | echostr | \[ 必填 \] 输出值 | * 案例 ~~~ echo checkSignature(); function checkSignature() { $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce = $_GET["nonce"]; $token = '831b09cae9adc905d171ab3cbc8fd4ba'; $tmpArr = array($token, $timestamp, $nonce); sort($tmpArr, SORT_STRING); $tmpStr = implode( $tmpArr ); $tmpStr = sha1( $tmpStr ); if ($tmpStr == $signature ) { return $_GET['echostr']; } else { return false; } } ~~~ >认证时候使用