| 1 | <?php |
||
| 13 | class VerifyQrCodeRequest extends Request |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * 二维码状态,未失效. |
||
| 17 | * |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | const STATUS_UNEXPIRED = 1; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * 二维码状态,已失效. |
||
| 24 | * |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | const STATUS_EXPIRED = 2; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * 二维码状态,认证中. |
||
| 31 | * |
||
| 32 | * @var int |
||
| 33 | */ |
||
| 34 | const STATUS_ACCREDITATION = 3; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * 二维码状态,认证成功 |
||
| 38 | * |
||
| 39 | * @var int |
||
| 40 | */ |
||
| 41 | const STATUS_CERTIFICATION = 4; |
||
| 42 | |||
| 43 | protected $uri = 'https://ssl.ptlogin2.qq.com/ptqrlogin?ptqrtoken={ptqrtoken}&webqq_type=10&remember_uin=1&login2qq=1&aid=501004106&u1=http%3A%2F%2Fw.qq.com%2Fproxy.html%3Flogin2qq%3D1%26webqq_type%3D10&ptredirect=0&ptlang=2052&daid=164&from_ui=1&pttype=1&dumy=&fp=loginerroralert&action=0-0-4303&mibao_css=m_webqq&t=undefined&g=1&js_type=0&js_ver=10203&login_sig=&pt_randsalt=0'; |
||
| 44 | |||
| 45 | protected $referer = 'https://ui.ptlogin2.qq.com/cgi-bin/login?daid=164&target=self&style=16&mibao_css=m_webqq&appid=501004106&enable_qlogin=0&no_verifyimg=1 &s_url=http%3A%2F%2Fw.qq.com%2Fproxy.html&f_url=loginerroralert &strong_login=1&login_state=10&t=20131024001'; |
||
| 46 | |||
| 47 | public function __construct($ptQrToken) |
||
| 51 | } |
||
| 52 |