예제 #1
0
 public function AddLongSource($appIndex = 10)
 {
     $data = array('type' => 'image', 'media' => $_SERVER['DOCUMENT_ROOT'] . "/statics/images/2007119122519868_2.jpg");
     $assesstoken = D("WxAccessToken")->getAccessToken($appIndex);
     $AppKey = Platform::$AppArr[$appIndex];
     $wechat = new WeChat($AppKey['AppID'], $AppKey['AppSecret']);
     return $wechat->AddLongSource($assesstoken, $data);
 }