/// <summary> /// 校验学生是否绑定公众号 /// <para>作 者:zhiwei.Tang</para> /// <para>创建时间:2019-03-06</para> /// </summary> /// <param name="studentId">学生Id</param> /// <exception cref="BussinessException"> /// 异常ID:38 ->学生未绑定家校互联 /// </exception> private void VerifyStudentBindWeiXin(long studentId) { List <string> phones = StudentService.GetMobiles(studentId); PassportService service = new PassportService(); bool isMobileBind = service.IsMobileBind(phones); if (!isMobileBind) { //未绑定家校互联 throw new BussinessException(ModelType.Timetable, 69); } }
/// <summary> /// 校验学生是否绑定公众号 /// <para>作 者:zhiwei.Tang</para> /// <para>创建时间:2019-03-06</para> /// </summary> /// <exception cref="BussinessException"> /// 异常ID:38 ->学生未绑定家校互联 /// </exception> private void VerifyStudentBindWeiXin() { List <string> phones = StudentService.GetMobiles(this._studentId); PassportService service = new PassportService(); bool isMobileBind = service.IsMobileBind(phones); if (!isMobileBind) { //学生未绑定家校互联 throw new BussinessException(ModelType.Default, (ushort)ScanCodeAttendStatusResponse.WARNING, ScanCodeAttendConstants.Unbound); } }