|
@@ -41,6 +41,11 @@ type NewResultSales struct {
|
|
Url string `json:"url"`
|
|
Url string `json:"url"`
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+type FuncResult struct {
|
|
|
|
+ Data interface{} `json:"data"`
|
|
|
|
+ Info map[string]interface{} `json:"info"`
|
|
|
|
+}
|
|
|
|
+
|
|
func (i *Info) CollectInfo() {
|
|
func (i *Info) CollectInfo() {
|
|
defer qu.Catch()
|
|
defer qu.Catch()
|
|
r := func() NewResultSales {
|
|
r := func() NewResultSales {
|
|
@@ -192,10 +197,10 @@ func (i *Info) RetainedCapital() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
userId, _ := i.GetSession("userId").(string)
|
|
userId, _ := i.GetSession("userId").(string)
|
|
- i.ServeJson(Result{Data: M{
|
|
|
|
|
|
+ i.ServeJson(FuncResult{Data: M{
|
|
"retainedCapital": Whether.Do(userId, source),
|
|
"retainedCapital": Whether.Do(userId, source),
|
|
"fource": Sysconfig.Source[source] != nil && Sysconfig.Source[source].Force,
|
|
"fource": Sysconfig.Source[source] != nil && Sysconfig.Source[source].Force,
|
|
- }})
|
|
|
|
|
|
+ }, Info: Whether.CNode(userId)})
|
|
}
|
|
}
|
|
|
|
|
|
//发送验证码
|
|
//发送验证码
|