提交 22eb35d1 authored 作者: JarvanMo's avatar JarvanMo

一些常用字段

上级 2577031c
......@@ -61,14 +61,6 @@ object WeChatPluginHandler {
fun onResp(resp: BaseResp) {
var code =-99
// val ERR_OK = 0
// val ERR_COMM = -1
// val ERR_USER_CANCEL = -2
// val ERR_SENT_FAILED = -3
// val ERR_AUTH_DENIED = -4
// val ERR_UNSUPPORT = -5
// val ERR_BAN = -6
when (resp.errCode) {
BaseResp.ErrCode.ERR_OK -> {
code = 0
......
......@@ -7,3 +7,11 @@ class WeChatResponseCode {
static const int ERR_UNSUPPORTED = -5;
static const int ERR_BAN = -6;
}
class WeChatResponseKey{
static const String TYPE ="type";
static const String ERR_CODE ="errCode";
static const String ERR_STR ="errStr";
static const String TRANSACTION ="transaction";
static const String OPEN_ID ="openId";
}
\ No newline at end of file
import 'package:wechat_plugin/src/wechat_scene.dart';
class WeChatShareTextModel{
final String text;
final String transaction;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论