Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
45 | 2 | public function handle($payload = null) |
|
46 | { |
||
47 | 2 | if ($decrypted = $this->app['request']->get('echostr')) { |
|
48 | 1 | $str = $this->app['encryptor_corp']->decrypt( |
|
49 | 1 | $decrypted, |
|
50 | 1 | $this->app['request']->get('msg_signature'), |
|
51 | 1 | $this->app['request']->get('nonce'), |
|
52 | 1 | $this->app['request']->get('timestamp') |
|
53 | ); |
||
54 | |||
55 | 1 | return new FinallyResult($str); |
|
56 | } |
||
57 | //把SuiteTicket缓存起来 |
||
58 | 1 | if (!empty($payload['SuiteTicket'])) { |
|
59 | 1 | $this->app['suite_ticket']->setTicket($payload['SuiteTicket']); |
|
60 | } |
||
63 |