This commit is contained in:
邹宗楠
2024-10-14 14:23:48 +08:00
parent e17042afd0
commit a6e6222075
2 changed files with 26 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ import (
"git.rosy.net.cn/jx-callback/business/jxstore/event"
"git.rosy.net.cn/jx-callback/business/jxutils"
push "git.rosy.net.cn/jx-callback/business/jxutils/unipush"
"git.rosy.net.cn/jx-callback/globals/api"
"github.com/astaxie/beego/server/web"
)
@@ -250,3 +251,19 @@ func (c *EventController) GetImMessageRecord() {
return retVal, "", err
})
}
// @Title 测试uniApp推送
// @Description 测试uniApp推送
// @Param token header string true "认证token"
// @Param vendorOrderID query string true "订单号"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /TestUniAppPush [get]
func (c *EventController) TestUniAppPush() {
c.callTestUniAppPush(func(params *tEventTestUniAppPushParams) (retVal interface{}, errCode string, err error) {
order, err := dao.GetSimpleOrder(dao.GetDB(), params.VendorOrderID)
push.NotifyNewOrder(order)
return retVal, errCode, err
})
}