2017 © Pedro Peláez
 

library login2hnnu-jwc

基于curl淮南师范学院教务处认证

image

ty666/login2hnnu-jwc

基于curl淮南师范学院教务处认证

  • Thursday, September 14, 2017
  • by ty666
  • Repository
  • 3 Watchers
  • 9 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Login2hnnuJwc

登陆到淮南师范学院教务处laravel扩展, (*1)

Installation

  • Run composer require ty666/login2hnnu-jwc

该扩展包已经可以独立使用

In laravel

  • Add Ty666\Login2hnnuJwc\Laravel\LaravelServiceProvider::class, to  providers in config/app.php
  • Add 'Login2hnnuJwc' => Ty666\Login2hnnuJwc\Facades\Login2hnnuJwc::class, to aliases in config/app.php

Usage

登陆进教务处

/**
 * Step.1 登陆进教务处
 * @param $studentNum 学号
 * @param $idCard 身份证号码
 * @return bool
 * @throws LoginJWCException 登录失败会抛出LoginJWCException异常
 */
 Login2hnnuJwc::login2Jwc($studentNum, $idCard);

从教务处获取学生信息(必须先登陆进教务处)

/**
  * Step.2 从教务处获取学生信息
  * @return array
  */

 Login2hnnuJwc::getStudentInfoFromJWC();

返回数组

//学号
'student_num'
//姓名
'student_name'
//二级学院
'department'
//专业+班级
'student_class'
//生日
'birthday'

保存照片(必须先登陆进教务处)

Login2hnnuJwc::savePhoto(), (*2)

返回值

Symfony\Component\HttpFoundation\File\UploadedFile, (*3)

The Versions

14/09 2017

dev-master

9999999-dev

基于curl淮南师范学院教务处认证

  Sources   Download

MIT

The Requires

 

by ty

24/05 2017

1.0.14

1.0.14.0

基于curl淮南师范学院教务处认证

  Sources   Download

MIT

The Requires

 

by ty

24/05 2017

1.0.13

1.0.13.0

基于curl淮南师范学院教务处认证

  Sources   Download

MIT

The Requires

 

by ty

23/05 2017

1.0.12

1.0.12.0

基于curl淮南师范学院教务处认证

  Sources   Download

MIT

The Requires

 

by ty

17/11 2016

1.0.10

1.0.10.0

基于curl淮南师范学院教务处认证

  Sources   Download

MIT

The Requires

 

by ty