|
@@ -141,6 +141,17 @@ func PayCashOut(c *gin.Context) {
|
|
|
app.Error(c, 400, err, err.Error())
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+ _, ok := GlobalCashOutMap[inData.OpenId]
|
|
|
+ if ok {
|
|
|
+ app.OK(c, nil, "正在提现中...")
|
|
|
+ return
|
|
|
+ }
|
|
|
+ GlobalCashOutMap[inData.OpenId] = 1
|
|
|
+
|
|
|
+ defer func() {
|
|
|
+ delete(GlobalCashOutMap, inData.OpenId)
|
|
|
+ }()
|
|
|
if inData.Appid == "" {
|
|
|
app.Error(c, 400, errors.New("Appid不能为空"), "Appid不能为空")
|
|
|
return
|