@@ -212,15 +212,18 @@ class _MyAppState extends State<MyApp> {
212
212
});
213
213
}
214
214
/// 获取短信验证码
215
- void getSMSCode (String phoneNum,{ String signId, String tempId} ){
215
+ void getSMSCode (){
216
216
setState (() {
217
217
_loading = true ;
218
218
});
219
-
219
+ String phoneNum = controllerPHone.text;
220
+ if (phoneNum == null ){
221
+ //TODO: 提示
222
+ }
220
223
jverify.checkVerifyEnable ().then ((map) {
221
224
bool result = map[f_result_key];
222
225
if (result) {
223
- jverify.getSMSCode (phoneNum,signId,tempId ).then ((map) {
226
+ jverify.getSMSCode (phoneNum: phoneNum ).then ((map) {
224
227
print ("获取短信验证码:${map .toString ()}" );
225
228
int code = map[f_code_key];
226
229
String message = map[f_msg_key];
@@ -243,8 +246,6 @@ class _MyAppState extends State<MyApp> {
243
246
setState (() {
244
247
_loading = true ;
245
248
});
246
- getSMSCode ();
247
-
248
249
jverify.checkVerifyEnable ().then ((map) {
249
250
bool result = map[f_result_key];
250
251
if (result) {
@@ -266,12 +267,6 @@ class _MyAppState extends State<MyApp> {
266
267
});
267
268
}
268
269
269
- void getSMSCode (){
270
- jverify.getSMSCode (phoneNumber: "18565775329" ).then ((map){
271
- print ("预取号接口回调:${map .toString ()}" );
272
- });
273
- }
274
-
275
270
/// SDK 请求授权一键登录
276
271
void loginAuth () {
277
272
setState (() {
@@ -355,7 +350,8 @@ class _MyAppState extends State<MyApp> {
355
350
uiConfig.privacyTextSize = 13 ;
356
351
//uiConfig.privacyWithBookTitleMark = true;
357
352
//uiConfig.privacyTextCenterGravity = false;
358
-
353
+ uiConfig.authStatusBarStyle = JVIOSBarStyle .StatusBarStyleDarkContent ;
354
+ uiConfig.privacyStatusBarStyle = JVIOSBarStyle .StatusBarStyleDefault ;
359
355
360
356
uiConfig.statusBarColorWithNav = true ;
361
357
uiConfig.virtualButtonTransparent = true ;
0 commit comments