File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -281,10 +281,19 @@ - (void)p_show{
281
281
_bgView.backgroundColor = [UIColor clearColor ];
282
282
_contentView.alpha = 0 ;
283
283
_passwordF.text = @" " ;
284
- _bottomL.attributedText = [self p_bottomStr ];
285
284
_submitBtn.enabled = YES ;
286
285
_bgView.frame = kScreen_Bounds ;
287
286
287
+ _bottomL.attributedText = [self p_bottomStr ];
288
+ @weakify (self);
289
+ [[CodingNetAPIClient sharedJsonClient ] requestJsonDataWithPath: @" api/account/points" withParams: nil withMethodType: Get andBlock: ^(id data, NSError *error) {
290
+ @strongify (self);
291
+ if (data) {
292
+ [Login curLoginUser ].points_left = data[@" data" ][@" points_left" ];
293
+ self.bottomL .attributedText = [self p_bottomStr ];
294
+ }
295
+ }];
296
+
288
297
[kKeyWindow addSubview: _bgView];
289
298
[UIView animateWithDuration: 0.3 animations: ^{
290
299
_bgView.backgroundColor = [UIColor colorWithWhite: 0 alpha: 0.6 ];
You can’t perform that action at this time.
0 commit comments