Skip to content

Commit b9cbb4b

Browse files
committed
https://coding.net/t/codingcorp/p/coding/task/138985
1 parent 0f62205 commit b9cbb4b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Coding_iOS/Util/Manager/SendRewardManager.m

+10-1
Original file line numberDiff line numberDiff 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];

0 commit comments

Comments
 (0)