|
@@ -30,6 +30,7 @@ import (
|
|
|
type CommonAction struct {
|
|
|
*xweb.Action
|
|
|
getwxSdkSign xweb.Mapper `xweb:"/wx/getwxSdkSign"` //微信js参数
|
|
|
+ getDomain xweb.Mapper `xweb:"/getDomain"` //微信js参数
|
|
|
getCommonOrderPrice xweb.Mapper `xweb:"/common/getOrderPrice"` //获取订单价格
|
|
|
getCommonPayParam xweb.Mapper `xweb:"/common/getPayParam"` //公共获取支付方法
|
|
|
saveTransferAccounts xweb.Mapper `xweb:"/common/saveTransferAccounts"` //公共对公转账接口
|
|
@@ -42,6 +43,14 @@ type CommonAction struct {
|
|
|
|
|
|
var pdfNameReg = regexp.MustCompilePOSIX(`[^//]*\.pdf`)
|
|
|
|
|
|
+func (this *CommonAction) GetDomain() {
|
|
|
+ this.ServeJson(NewResult(map[string]interface{}{
|
|
|
+ "web": config.Config.WebDomain,
|
|
|
+ "app": config.Config.AppDomain,
|
|
|
+ "wx": config.Config.WxDomain,
|
|
|
+ }, nil))
|
|
|
+}
|
|
|
+
|
|
|
func (this *CommonAction) SendMailNote(mailType string) {
|
|
|
userId, _ := this.GetSession("userId").(string)
|
|
|
rData, errMsg := func() (interface{}, error) {
|
|
@@ -252,7 +261,8 @@ func (d *CommonAction) GetwxSdkSign() {
|
|
|
sign = SignJSSDK(url)
|
|
|
}
|
|
|
d.ServeJson(map[string]interface{}{
|
|
|
- "wxsdk": sign,
|
|
|
+ "wxsdk": sign,
|
|
|
+ "wxDomain": config.Config.WxDomain,
|
|
|
})
|
|
|
}
|
|
|
|