예제 #1
0
파일: Tencent.php 프로젝트: medz/thinksns-4
 /**
  * 初始化
  * @param $client_id 即 appid
  * @param $client_secret 即 appkey
  * @return
  */
 public static function init($client_id, $client_secret)
 {
     if (!$client_id || !$client_secret) {
         exit('client_id or client_secret is null');
     }
     self::$client_id = $client_id;
     self::$client_secret = $client_secret;
 }
예제 #2
0
 /**
  * 初始化
  * @param $client_id 即 appid
  * @param $client_secret 即 appkey
  * @return
  */
 public static function init($client_id, $client_secret)
 {
     self::$client_id = $client_id;
     self::$client_secret = $client_secret;
 }