Exemple #1
0
 public static function weixinLogin()
 {
     $wexin = new WeiApi(APP_ID, APP_KEY);
     $code_url = $wexin->getAuthorizeURL(WB_CALLBACK_URL);
     header('Location: ' . $code_url);
 }