Esempio n. 1
0
        public Respbase HasBindActivityThirdparty(HasBindActivityThirdpartyReq req)
        {
            var facade = new ActivityFacade();
            var result = facade.HasBindActivityThirdparty(req);

            return(new Respbase()
            {
                Message = result ? facade.PromptInfo.Message : "你还没有绑定PCN账号", Result = result ? 1 : 0
            });
        }
Esempio n. 2
0
 /// <summary>
 /// 检查每月活动是否绑定pcn帐号
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public bool HasBindActivityThirdparty(HasBindActivityThirdpartyReq req)
 {
     return(db.TpxinActivityThirdpartySet.FirstOrDefault(p => p.Nodeid == req.Nodeid && p.ActivityId == req.ActivityId) != null);
 }