File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -281,10 +281,19 @@ - (void)p_show{
281281 _bgView.backgroundColor = [UIColor clearColor ];
282282 _contentView.alpha = 0 ;
283283 _passwordF.text = @" " ;
284- _bottomL.attributedText = [self p_bottomStr ];
285284 _submitBtn.enabled = YES ;
286285 _bgView.frame = kScreen_Bounds ;
287286
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+
288297 [kKeyWindow addSubview: _bgView];
289298 [UIView animateWithDuration: 0.3 animations: ^{
290299 _bgView.backgroundColor = [UIColor colorWithWhite: 0 alpha: 0.6 ];
You can’t perform that action at this time.
0 commit comments