WechatAccessTokenResp 类没有 unionID 成员变量
RA1NO3O opened this issue · comments
レエイン|RA1N commented
import 'package:json_annotation/json_annotation.dart';
import 'package:wechat_kit/src/model/api/wechat_api_resp.dart';
part 'wechat_access_token_resp.g.dart';
@JsonSerializable(
explicitToJson: true,
fieldRename: FieldRename.snake,
)
class WechatAccessTokenResp extends WechatApiResp {
const WechatAccessTokenResp({
required int errcode,
String? errmsg,
this.openid,
this.scope,
this.accessToken,
this.refreshToken,
this.expiresIn,
}) : super(
errcode: errcode,
errmsg: errmsg,
);
factory WechatAccessTokenResp.fromJson(Map<String, dynamic> json) =>
_$WechatAccessTokenRespFromJson(json);
final String? openid;
final String? scope;
final String? accessToken;
final String? refreshToken;
final int? expiresIn; // 单位:秒
@override
Map<String, dynamic> toJson() => _$WechatAccessTokenRespToJson(this);
}
droplet commented
你提交一下PR吧
レエイン|RA1N commented
好的,荣幸之至
droplet commented
-_-!!! 额,为啥我看到的文档里面mu木有 unionid
レエイン|RA1N commented
在这里,确实是有的😂-_-!!! 额,为啥我看到的文档里面mu木有 unionid
droplet commented
thx