|
@@ -5,15 +5,11 @@
|
|
|
package manage
|
|
|
|
|
|
import (
|
|
|
- "encoding/json"
|
|
|
"fmt"
|
|
|
- "github.com/go-xweb/xweb"
|
|
|
- . "gopkg.in/mgo.v2/bson"
|
|
|
"log"
|
|
|
"qfw/coreconfig"
|
|
|
. "qfw/coreconfig"
|
|
|
"qfw/coreutil"
|
|
|
- "qfw/member"
|
|
|
"qfw/util"
|
|
|
credit "qfw/util/credit"
|
|
|
"qfw/util/elastic"
|
|
@@ -26,6 +22,9 @@ import (
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "github.com/go-xweb/xweb"
|
|
|
+ . "gopkg.in/mgo.v2/bson"
|
|
|
)
|
|
|
|
|
|
type SystemManage struct {
|
|
@@ -837,14 +836,6 @@ func (s *SystemManage) Updateaudit() error {
|
|
|
}()
|
|
|
}
|
|
|
go func() {
|
|
|
- util.Try(func() {
|
|
|
- mapUser := *FindById("user", s_submitid, nil)
|
|
|
- r := make(map[string]interface{})
|
|
|
- if d, err := json.Marshal(mapUser); err != nil || json.Unmarshal(d, &r) != nil {
|
|
|
- return
|
|
|
- }
|
|
|
- member.UpdateSession(s.Action, r)
|
|
|
- }, func(e interface{}) {})
|
|
|
redis.Del("enterprise", "enterpriseInfo_"+s_enterpriseid)
|
|
|
redis.Del("enterprise", "menterpriseInfo_"+s_enterpriseid)
|
|
|
}()
|
|
@@ -854,11 +845,7 @@ func (s *SystemManage) Updateaudit() error {
|
|
|
}
|
|
|
//认证送积分
|
|
|
if flag == "true" && _status == 1 {
|
|
|
- b, credit_a, score, _ := credit.InCreditA(s_submitid, credit.A_RZ, util.Int64All((*f)["credit_a"]))
|
|
|
- if b {
|
|
|
- s.Session().UpdateByCustomField("id", s_submitid, "i_credit", util.IntAll((*f)["i_credit"])+score)
|
|
|
- s.Session().UpdateByCustomField("id", s_submitid, "credit_a", credit_a)
|
|
|
- }
|
|
|
+ credit.InCreditA(s_submitid, credit.A_RZ, util.Int64All((*f)["credit_a"]))
|
|
|
}
|
|
|
s.Write(`{"flag":"` + flag + `","msg":"` + msg + `"}`)
|
|
|
}
|