https://blog.csdn.net/qq9108780/article/details/120425680
申明:仅为模板开发,去除提示使用!如果喜欢该程序,请赞助原作者。
去除 注册码验证,原始文件36-57行。(路径:include\lib\register.php)
public static function checkEmKey(\$emkey) {
// if (empty(\$emkey)) {
// return false;
// }
//
// \$emcurl = new EmCurl();
// \$emcurl->setPost(['emkey' => \$emkey]);
// \$emcurl->request(OFFICIAL_SERVICE_HOST . 'proauth/register');
// if (\$emcurl->getHttpStatus() !== 200) {
// return false;
// }
// \$response = \$emcurl->getRespone();
// \$response = json_decode(\$response, 1);
// if (\$response['code'] !== 200) {
// \$CACHE = Cache::getInstance();
// Option::updateOption('emkey', '');
// \$CACHE->updateCache('options');
// return false;
// }
return true;
}
去除 商店验证,原始文件27-31行。(路径:admin\store.php)
if (\$ret['code'] === MSGCODE_EMKEY_INVALID) {
// Option::updateOption('emkey', '');
// \$CACHE->updateCache('options');
// emDirect("./register.php?error_store=1");
}