微信SDK接通

This commit is contained in:
2026-07-01 19:56:44 +08:00
parent a1cbfc7241
commit aea1513836
38 changed files with 1610 additions and 92 deletions
@@ -0,0 +1,37 @@
import { Injectable, NotImplementedException } from '@nestjs/common';
import type { IWechatProvider } from './wechat.interface';
@Injectable()
export class WechatDisabledProvider implements IWechatProvider {
isEnabled() {
return false;
}
private disabled(): never {
throw new NotImplementedException('FEATURE_DISABLED');
}
code2Session() {
return this.disabled();
}
oauth2AccessToken() {
return this.disabled();
}
createJssdkConfig() {
return this.disabled();
}
buildOAuthUrl() {
return this.disabled();
}
getPhoneNumberByCode() {
return this.disabled();
}
createJsapiPrepay() {
return this.disabled();
}
}