You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package common
import ( "hudongzhuanjia/controllers" im_service "hudongzhuanjia/services/im" pay_service "hudongzhuanjia/services/pay" )
type ImTestCtl struct { controllers.BaseCtl }
func (t *ImTestCtl) SendRB() { scene := t.MustGetInt("scene") res, err := pay_service.SendRedPack("欧轩测试", "o9XM41l_c27wRuc33hutRVwsQO4U", "恭喜发财", "抢红包活动", "越抢越多", 100, 1, scene) t.CheckErr(err) t.JSON(res) } func (t *ImTestCtl) Refund() { outTradeNo := t.MustGet("out_trade_no") res, err := pay_service.Refund("退款", outTradeNo) t.CheckErr(err) t.JSON(res) }
func (t *ImTestCtl) Send() { err := im_service.SendGroupCustomMessage("admin", t.MustGetInt64("activity_id"), im_service.NoticeStatus(t.MustGetInt("type")), map[string]interface{}{ "content": "测试", }) t.CheckErr(err) t.SUCCESS("成功") }
|