コード例 #1
0
ファイル: monUtil.class.php プロジェクト: eduNeusoft/weixin
 public static function defaultImg($img_type, $zl = '')
 {
     switch ($img_type) {
         //首页
         case MonUtil::$IMG_SHARE_BG:
             if (!empty($zl) && !empty($zl['share_bg'])) {
                 return MonUtil::getpicurl($zl['share_bg']);
             }
             $img_name = "guide.png";
             break;
     }
     return "../addons/mon_qmshake/images/" . $img_name;
 }
コード例 #2
0
ファイル: processor.php プロジェクト: eduNeusoft/weixin
 public function respond()
 {
     $rid = $this->rule;
     $order = pdo_fetch("select * from " . tablename(DBUtil::$TABLE_ORDER_FORM) . " where rid=:rid", array(":rid" => $rid));
     if (!empty($order)) {
         $news = array();
         $news[] = array('title' => $order['new_title'], 'description' => $order['new_content'], 'picurl' => MonUtil::getpicurl($order['new_icon']), 'url' => $this->createMobileUrl('Index', array('fid' => $order['id'])));
         return $this->respNews($news);
     } else {
         return $this->respText("订单不不存在");
     }
     return null;
 }
コード例 #3
0
ファイル: processor.php プロジェクト: ChainBoy/wxfx
 public function respond()
 {
     $rid = $this->rule;
     $wkj = pdo_fetch("select * from " . tablename(DBUtil::$TABLE_WKJ) . " where rid=:rid", array(":rid" => $rid));
     if (!empty($wkj)) {
         $news = array();
         $news[] = array('title' => $wkj['new_title'], 'description' => $wkj['new_content'], 'picurl' => MonUtil::getpicurl($wkj['new_icon']), 'url' => $this->createMobileUrl('auth', array('kid' => $wkj['id'], 'au' => Value::$REDIRECT_USER_INDEX)));
         return $this->respNews($news);
     } else {
         return $this->respText("砍价活动不存在或删除");
     }
     return null;
 }
コード例 #4
0
ファイル: processor.php プロジェクト: eduNeusoft/weixin
 public function respond()
 {
     $rid = $this->rule;
     $egg = pdo_fetch("select * from " . tablename(DBUtil::$TABLE_EGG) . " where rid=:rid", array(":rid" => $rid));
     if (!empty($egg)) {
         if (TIMESTAMP < $egg['starttime']) {
             return $this->respText("砸金蛋活动未开始!");
         }
         $news = array();
         $news[] = array('title' => $egg['new_title'], 'description' => $egg['new_content'], 'picurl' => MonUtil::getpicurl($egg['new_icon']), 'url' => $this->createMobileUrl('Index', array('egid' => $egg['id'])));
         return $this->respNews($news);
     } else {
         return $this->respText("砸金蛋活动未开始");
     }
     return null;
 }
コード例 #5
0
ファイル: monUtil.class.php プロジェクト: eduNeusoft/weixin
 public static function defaultImg($img_type, $egg = '')
 {
     switch ($img_type) {
         //首页
         case MonUtil::$IMG_BANNER_BG:
             if (!empty($egg) && !empty($egg['banner_bg'])) {
                 return MonUtil::getpicurl($egg['banner_bg']);
             }
             $img_name = "banner.jpg";
             break;
         case MonUtil::$IMG_BG:
             if (!empty($egg) && !empty($egg['bg_img'])) {
                 return MonUtil::getpicurl($egg['bg_img']);
             }
             $img_name = "bg.jpg";
             break;
         case MonUtil::$IMG_SHARE_BG:
             if (!empty($egg) && !empty($egg['share_bg'])) {
                 return MonUtil::getpicurl($egg['share_bg']);
             }
             $img_name = "guide.png";
             break;
     }
     return "../addons/mon_egg/images/" . $img_name;
 }