|
|
@@ -2,6 +2,7 @@ package balance_controller
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
+ "fohow.com/libs/lib_redis"
|
|
|
"github.com/astaxie/beego"
|
|
|
|
|
|
// "crypto/md5"
|
|
|
@@ -160,9 +161,9 @@ func (self *BalanceController) TakeCash() {
|
|
|
}*/
|
|
|
user := self.GetCurrentUser(false)
|
|
|
|
|
|
- if user.BankAccount == "" || user.AccountName == "" {
|
|
|
+ /*if user.BankAccount == "" || user.AccountName == "" {
|
|
|
self.ReturnError(403, []string{"notBindbank", "请完善您的银行卡信息"}, "", nil)
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
wxUser := self.GetCurrentWxUser(false)
|
|
|
todayOrderList := balance_model.GetTakeCashOrderListByWxUIdAndTime(wxUser.Id, time.Now(), false)
|
|
|
@@ -197,9 +198,9 @@ func (self *BalanceController) TakeCash() {
|
|
|
o.Save()
|
|
|
}
|
|
|
//提现成功加入提现处理队列
|
|
|
- //cashKey := lib_redis.GetAutoTakeCashList()
|
|
|
- //takeId := fmt.Sprintf("%d", o.Id)
|
|
|
- //lib_redis.ThrowInRedisList(cashKey, takeId)
|
|
|
+ cashKey := lib_redis.GetAutoTakeCashList()
|
|
|
+ takeId := fmt.Sprintf("%d", o.Id)
|
|
|
+ lib_redis.ThrowInRedisList(cashKey, takeId)
|
|
|
|
|
|
self.Data["json"] = o
|
|
|
self.ServeJSON()
|