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)); }
public function errAjax($rc, $errMsg = '') { return $this->onAjax(W::errReturn($rc, $errMsg)); }