Esempio n. 1
0
 public static function getSignature($timestamp, $nonce, $signature)
 {
     if (!$signature || !$timestamp || !$nonce) {
         return W::errReturn(Rc::RC_VAR_ERROR);
     }
     $tmp = array(WeixinConfig::WX_TOKEN, $timestamp, $nonce);
     sort($tmp, SORT_STRING);
     return sha1(implode($tmp));
 }
Esempio n. 2
0
 public function errAjax($rc, $errMsg = '')
 {
     return $this->onAjax(W::errReturn($rc, $errMsg));
 }