@@ -75,7 +75,11 @@ func (this *ArticleController) Detail() {
detail.Body = html.UnescapeString(detail.Body)
detail.Abstract = html.UnescapeString(detail.Abstract)
if companyPermission == "" {
- hasPermission = 2
+ if applyCount > 0 {
+ hasPermission = 5
+ } else {
+ hasPermission = 2
+ }
hasFree = 2
goto Loop
} else {
@@ -201,6 +201,12 @@ func (this *WechatCommonController) WechatLogin() {
return
}
+ if token == "" {
+ br.Msg = "微信登录失败"
+ br.ErrMsg = "token:" + token + "" + code + " " + wxInfo.OpenID + " " + wxInfo.UnionID
+ return
+
//新增登录日志
{
loginLog := new(models.WxUserLog)