瀏覽代碼

add verifyAccount

melon.yin 3 年之前
父節點
當前提交
93f9401222
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 1 1
      lib/rpc.dart
  2. 5 0
      lib/services/login.dart

+ 1 - 1
lib/rpc.dart

@@ -15,7 +15,7 @@ typedef T ServiceBuilder<T extends JsonRpcClientBase>();
 const String _defaultAddressSign = "FLYINSONO";
 
 /// 测试
-const String JSON_RPC_CLIENT_VERSION = "1.0.1-rc1";
+const String JSON_RPC_CLIENT_VERSION = "1.0.1-rc2";
 
 /// JSON-RPC 代理
 class JsonRpcProxy {

+ 5 - 0
lib/services/login.dart

@@ -78,5 +78,10 @@ class LoginService extends JsonRpcClientBase {
 		return rpcRst;
 	}
 
+	Future<bool> verifyAccount(String userName) async {
+		var rpcRst = await call("VerifyAccount", userName);
+		return rpcRst;
+	}
+
 }