|
@@ -6,6 +6,7 @@ import (
|
|
|
"mtp2_if/logger"
|
|
"mtp2_if/logger"
|
|
|
"mtp2_if/models"
|
|
"mtp2_if/models"
|
|
|
"net/http"
|
|
"net/http"
|
|
|
|
|
+ "strings"
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/gin-gonic/gin"
|
|
|
)
|
|
)
|
|
@@ -15,7 +16,7 @@ import (
|
|
|
// @Produce json
|
|
// @Produce json
|
|
|
// @Security ApiKeyAuth
|
|
// @Security ApiKeyAuth
|
|
|
// @Param userId query int true "用户ID"
|
|
// @Param userId query int true "用户ID"
|
|
|
-// @Param accountId query int false "资金账户"
|
|
|
|
|
|
|
+// @Param accountId query string false "资金账户"
|
|
|
// @Param goodsId query int false "商品ID"
|
|
// @Param goodsId query int false "商品ID"
|
|
|
// @Success 200 {array} models.RedisTradeHolderDetailEx
|
|
// @Success 200 {array} models.RedisTradeHolderDetailEx
|
|
|
// @Failure 500 {object} app.Response
|
|
// @Failure 500 {object} app.Response
|
|
@@ -34,7 +35,7 @@ func GetMyOrders(c *gin.Context) {
|
|
|
|
|
|
|
|
// 获取数据
|
|
// 获取数据
|
|
|
d := models.RedisTradeHolderDetailEx{}
|
|
d := models.RedisTradeHolderDetailEx{}
|
|
|
- rsp, err := d.GetDataEx(req.UserId, req.GoodsId, req.AccountId)
|
|
|
|
|
|
|
+ rsp, err := d.GetDataEx(req.UserId, req.GoodsId, strings.TrimSpace(req.AccountId))
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
// 查询失败
|
|
// 查询失败
|
|
|
logger.GetLogger().Errorf("GetMyOrders failed: %s", err.Error())
|
|
logger.GetLogger().Errorf("GetMyOrders failed: %s", err.Error())
|