コード例 #1
0
 public static function getMedia($mediaId)
 {
     $appid = C('WECHAT_APPID');
     $appsecret = C('WECHAT_SECRET');
     $options = array('appid' => $appid, 'appsecret' => $appsecret);
     $weixin = new TPWechat($options);
     return $weixin->getMedia($mediaId);
 }