提交
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
|
||||
/// 是否为规则页面返回
|
||||
@property (nonatomic,assign)BOOL isFromRule;
|
||||
@property (nonatomic,assign)BOOL isSendNet;
|
||||
@end
|
||||
|
||||
@implementation QXRedBagSendView
|
||||
@@ -744,6 +745,10 @@
|
||||
showToast(@"红包数量不能大于红包金额");
|
||||
return;
|
||||
}
|
||||
if (self.isSendNet) {
|
||||
return;
|
||||
}
|
||||
self.isSendNet = YES;
|
||||
[QXMineNetwork createRedpacketWithType:self.redBagType
|
||||
password:self.pwdTextField.text
|
||||
coin_type:self.redBagContentType
|
||||
@@ -754,9 +759,11 @@
|
||||
room_id:self.room_id
|
||||
remark:self.remarkTextField.text
|
||||
successBlock:^(NSDictionary * _Nonnull dict) {
|
||||
self.isSendNet = NO;
|
||||
showToast(@"发送成功");
|
||||
[self hide];
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
self.isSendNet = NO;
|
||||
showToast(msg);
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user