|
@@ -411,7 +411,7 @@ func (s *Synthesis) FindMDBUserLogDaily(req entity.UserLogDailyReq) (*entity.Use
|
|
func (s *Synthesis) FindWithdrawal(req entity.UserWithdrawalReq) (*entity.UserWithdrawalResp, *code.Result) {
|
|
func (s *Synthesis) FindWithdrawal(req entity.UserWithdrawalReq) (*entity.UserWithdrawalResp, *code.Result) {
|
|
page, pageSize := checkPageParam(req.Page, req.Size)
|
|
page, pageSize := checkPageParam(req.Page, req.Size)
|
|
|
|
|
|
- if !constant.CurrencyValid(req.Currency) {
|
|
|
|
|
|
+ if req.Currency != "" && !constant.CurrencyValid(req.Currency) {
|
|
mhayaLogger.Warnf("FindWithdrawal unknow currency:%v", req.Currency)
|
|
mhayaLogger.Warnf("FindWithdrawal unknow currency:%v", req.Currency)
|
|
return nil, common.NewResult(code.ParamError)
|
|
return nil, common.NewResult(code.ParamError)
|
|
}
|
|
}
|
|
@@ -1065,12 +1065,12 @@ func (s *Synthesis) getAsset(userName string) (*entity.AssetsDetail, *code.Resul
|
|
func (s *Synthesis) AssetsRecord(req entity.AssetsRecordReq) (*entity.AssetsRecordResp, *code.Result) {
|
|
func (s *Synthesis) AssetsRecord(req entity.AssetsRecordReq) (*entity.AssetsRecordResp, *code.Result) {
|
|
page, pageSize := checkPageParam(req.Page, req.Size)
|
|
page, pageSize := checkPageParam(req.Page, req.Size)
|
|
|
|
|
|
- if !constant.CurrencyValid(req.Currency) {
|
|
|
|
|
|
+ if req.Currency != "" && !constant.CurrencyValid(req.Currency) {
|
|
mhayaLogger.Warnf("AssetsRecord unknow currency:%v", req.Currency)
|
|
mhayaLogger.Warnf("AssetsRecord unknow currency:%v", req.Currency)
|
|
return nil, common.NewResult(code.ParamError)
|
|
return nil, common.NewResult(code.ParamError)
|
|
}
|
|
}
|
|
|
|
|
|
- if req.OperationType != string(constant.IncreaseOp) && req.OperationType != string(constant.DecreaseOp) {
|
|
|
|
|
|
+ if req.OperationType != "" && req.OperationType != string(constant.IncreaseOp) && req.OperationType != string(constant.DecreaseOp) {
|
|
mhayaLogger.Warnf("AssetsRecord unknow OperationType:%v", req.OperationType)
|
|
mhayaLogger.Warnf("AssetsRecord unknow OperationType:%v", req.OperationType)
|
|
return nil, common.NewResult(code.ParamError)
|
|
return nil, common.NewResult(code.ParamError)
|
|
}
|
|
}
|