|
|
@@ -165,7 +165,7 @@ func CurlAlipayTradeRefund(args md.CurlAlipayTradeRefundReq) (err error, resp in |
|
|
|
return nil, result.Data |
|
|
|
} |
|
|
|
|
|
|
|
func CurlEducateSceneTokenQuery(args md.CurlEducateSceneTokenReq, userIdentityId int, userToken string) (err error, resp interface{}) { |
|
|
|
func CurlEducateSceneTokenQuery(args md.CurlEducateSceneTokenReq, userIdentity *model.UserIdentity, userToken string) (err error, resp interface{}) { |
|
|
|
utils.FilePutContents("CurlEducateSceneTokenQuery", utils.SerializeStr(map[string]interface{}{ |
|
|
|
"args": args, |
|
|
|
})) |
|
|
@@ -247,7 +247,7 @@ func CurlEducateSceneTokenQuery(args md.CurlEducateSceneTokenReq, userIdentityId |
|
|
|
} |
|
|
|
// 更新/新增 `self_support_for_user_facel_info` |
|
|
|
selfSupportForUserFaceInfoDb := db.SelfSupportForUserFaceInfoDb{} |
|
|
|
selfSupportForUserFaceInfoDb.Set(userIdentityId) |
|
|
|
selfSupportForUserFaceInfoDb.Set(userIdentity.Id) |
|
|
|
info, err := selfSupportForUserFaceInfoDb.GetSelfSupportForUserFaceInfo() |
|
|
|
if err != nil { |
|
|
|
return |
|
|
@@ -259,7 +259,8 @@ func CurlEducateSceneTokenQuery(args md.CurlEducateSceneTokenReq, userIdentityId |
|
|
|
|
|
|
|
if info == nil { |
|
|
|
info = &model.SelfSupportForUserFaceInfo{ |
|
|
|
UserIdentityId: userIdentityId, |
|
|
|
EnterpriseId: userIdentity.EnterpriseId, |
|
|
|
UserIdentityId: userIdentity.Id, |
|
|
|
CollectFaceType: 1, |
|
|
|
SchoolCode: res["school_code"], |
|
|
|
SchoolStdCode: res["school_std_code"], |
|
|
|