|
@@ -94,7 +94,7 @@ func (this *CourseAction) SaveVoucher() {
|
|
|
log.Printf("%s CreateOrder err:%v\n", userId, r.Err.Error())
|
|
|
} else {
|
|
|
//0:支付成功 1:对公转账凭证提交 2:申请退款
|
|
|
- go entity.SendMailToOperation(1, this.GetString("orderCode"), config.GmailAuth)
|
|
|
+ go entity.SendMailToOperation(1, this.GetString("orderCode"), "招投标课程", config.GmailAuth)
|
|
|
}
|
|
|
this.ServeJson(r.Format())
|
|
|
}
|
|
@@ -666,13 +666,14 @@ func (this *CourseAction) OrderInfo() {
|
|
|
//退款
|
|
|
func (this *CourseAction) Refund() {
|
|
|
userId := qutil.ObjToString(this.GetSession("userId"))
|
|
|
+ productType := ""
|
|
|
r := func() *entity.FuncResult {
|
|
|
orderCode := this.GetString("orderCode")
|
|
|
refundReason := this.GetString("refundReason") //退款原因
|
|
|
orderdata := util.Mysql.FindOne("dataexport_order", map[string]interface{}{
|
|
|
"order_code": orderCode,
|
|
|
"user_id": userId,
|
|
|
- }, "id,course_status,filter", "")
|
|
|
+ }, "id,course_status,filter,product_type", "")
|
|
|
if orderdata == nil {
|
|
|
return &entity.FuncResult{false, errors.New("未找到订单"), nil}
|
|
|
}
|
|
@@ -683,6 +684,7 @@ func (this *CourseAction) Refund() {
|
|
|
}
|
|
|
vmsg := entity.JyCourseDetailMsg{}
|
|
|
filterStr := qutil.ObjToString((*orderdata)["filter"])
|
|
|
+ productType = qutil.ObjToString((*orderdata)["product_type"])
|
|
|
if err := json.Unmarshal([]byte(filterStr), &vmsg); err != nil {
|
|
|
log.Printf("%s course PayCallBack Unmarshal 出错 [%s]\n", userId, filterStr)
|
|
|
return &entity.FuncResult{false, errors.New("序列化出错"), nil}
|
|
@@ -710,7 +712,7 @@ func (this *CourseAction) Refund() {
|
|
|
log.Printf("%s CreateOrder err:%v\n", userId, r.Err.Error())
|
|
|
} else {
|
|
|
//0:支付成功 1:对公转账凭证提交 2:申请退款
|
|
|
- go entity.SendMailToOperation(2, this.GetString("orderCode"), config.GmailAuth)
|
|
|
+ go entity.SendMailToOperation(2, this.GetString("orderCode"), productType, config.GmailAuth)
|
|
|
}
|
|
|
this.ServeJson(r.Format())
|
|
|
}
|