Esempio n. 1
0
 public function get_wx_ip()
 {
     import('@.ORG.Wxhelper');
     $helper = new Wxhelper($this->pubwechat);
     $return = $helper->get_wx_ip();
     foreach ($return['ip_list'] as $val) {
         $ip_str .= $val . '<br/>';
     }
     echo "<h5>微信服务器IP地址:<h5/><hr/>" . $ip_str;
 }
Esempio n. 2
0
 public function fans_analyze()
 {
     import("@.ORG.Wxhelper");
     $helper = new Wxhelper($this->pubwechat);
     $list = $helper->get_wxfans();
     $this->assign('list', $list);
     $month = date('m', time());
     $day = date('d', time());
     $year = date('Y', time());
     $today = mktime(0, 0, 0, $month, $day, $year);
     $today_sub_num = M('wechat_user')->where(array('subscribe_time' => array('gt', $today)))->count();
     $this->assign('today_sub_num', $today_sub_num);
     //今日关注人数
     $today_unsub_num = M('wechat_user')->where(array('subscribe' => 0, 'posttime' => array('gt', $today)))->count();
     $this->assign('today_unsub_num', $today_unsub_num);
     //今日取消关注人数
     $this->display();
     /*$date_range=array('begin_date'=>date('Y-m-d',time()-3600*24*7),'end_date'=>date('Y-m-d',time()));
     		$res=$helper->getusersummary(json_encode($date_range));
     		echo "<pre>";
     		print_r($res);*/
 }