Merge branch 'zct-v2-dengluyang' of https://code.hoteas.com/golang/hotime into zhoupengwei
This commit is contained in:
commit
d85c65faef
@ -15,9 +15,9 @@ var SearchRecordCtr = Ctr{
|
|||||||
page = 1
|
page = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if pageSize <= 0 {
|
//if pageSize <= 0 {
|
||||||
pageSize = 20
|
pageSize = 50
|
||||||
}
|
//}
|
||||||
|
|
||||||
data := Map{"del_flag": 0}
|
data := Map{"del_flag": 0}
|
||||||
keywords := that.Req.FormValue("keywords")
|
keywords := that.Req.FormValue("keywords")
|
||||||
|
@ -80,7 +80,7 @@ var VipOrderCtr = Ctr{
|
|||||||
if user.GetCeilInt("salesman_id") != 0 {
|
if user.GetCeilInt("salesman_id") != 0 {
|
||||||
data["salesman_id"] = user.GetCeilInt("salesman_id")
|
data["salesman_id"] = user.GetCeilInt("salesman_id")
|
||||||
}
|
}
|
||||||
data["name"] = tp + "1年VIP会员"
|
data["name"] = companyName + tp + "1年VIP会员"
|
||||||
|
|
||||||
jsParams, e := wechat.WxPay.GetJsOrder(data.GetCeilInt64("amount"), that.Config.GetString("wechatAppID"), wc.GetString("openid"), data.GetString("name"), data.GetString("sn"), that.Config.GetString("wechatAppNotifyUrl"))
|
jsParams, e := wechat.WxPay.GetJsOrder(data.GetCeilInt64("amount"), that.Config.GetString("wechatAppID"), wc.GetString("openid"), data.GetString("name"), data.GetString("sn"), that.Config.GetString("wechatAppNotifyUrl"))
|
||||||
if e != nil {
|
if e != nil {
|
||||||
|
@ -2,11 +2,14 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
. "code.hoteas.com/golang/hotime"
|
. "code.hoteas.com/golang/hotime"
|
||||||
|
"code.hoteas.com/golang/hotime/common"
|
||||||
"code.hoteas.com/golang/hotime/dri/aliyun"
|
"code.hoteas.com/golang/hotime/dri/aliyun"
|
||||||
"code.hoteas.com/golang/hotime/dri/ddsms"
|
"code.hoteas.com/golang/hotime/dri/ddsms"
|
||||||
"code.hoteas.com/golang/hotime/dri/wechat"
|
"code.hoteas.com/golang/hotime/dri/wechat"
|
||||||
"code.hoteas.com/golang/hotime/example/app"
|
"code.hoteas.com/golang/hotime/example/app"
|
||||||
"code.hoteas.com/golang/hotime/example/provider"
|
"code.hoteas.com/golang/hotime/example/provider"
|
||||||
|
"net/url"
|
||||||
|
|
||||||
//. "code.hoteas.com/golang/hotime/common"
|
//. "code.hoteas.com/golang/hotime/common"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
@ -37,8 +40,11 @@ func main() {
|
|||||||
appIns.SetConnectListener(func(that *Context) (isFinished bool) {
|
appIns.SetConnectListener(func(that *Context) (isFinished bool) {
|
||||||
//发送短信校验
|
//发送短信校验
|
||||||
that.RespFunc = func() {
|
that.RespFunc = func() {
|
||||||
fmt.Println(that.Req.Form)
|
go func(Form url.Values, RespData common.Map) {
|
||||||
fmt.Println(that.RespData)
|
fmt.Println(Form)
|
||||||
|
fmt.Println(RespData)
|
||||||
|
}(that.Req.Form, that.RespData)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return isFinished
|
return isFinished
|
||||||
|
Loading…
Reference in New Issue
Block a user