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