Exemplo n.º 1
0
 private function pic_limit($type, $num = 1)
 {
     global $_GPC, $_W;
     $uniacid = $_W['uniacid'];
     $openid = $_W['openid'];
     load()->func('logging');
     $result = FALSE;
     if ($type == '1') {
         $sql = 'SELECT count(openid) FROM ' . tablename('ice_picWallLikelist') . ' WHERE to_days(time) = to_days(now()) and openid =:openid and uniacid =:uniacid and picid =:picid';
         $param = array(':openid' => $openid, ':uniacid' => $uniacid, ':picid' => $_GPC['personalPicWallId']);
         $column = pdo_fetchcolumn($sql, $param);
         logging_run('数据是:' . json_encode($column), '', 'limit1');
         if ($column >= 1) {
             $result = TRUE;
         }
     } elseif ($type == '2') {
         $sql = 'SELECT count(openid) FROM ' . tablename('ice_picWallLikelist') . ' WHERE openid =:openid';
         $param = array(':openid' => $openid);
         $column = pdo_fetchcolumn($sql, $param);
         logging_run('数据是:' . json_encode($column), '', 'limit2');
         if ($column >= 1) {
             $result = TRUE;
         }
     }
     return $result;
 }
Exemplo n.º 2
0
 /**
  * 获取prepay_id
  */
 function getPrepayId()
 {
     load()->func('logging');
     $this->postXml();
     $this->result = $this->xmlToArray($this->response);
     $prepay_id = $this->result["prepay_id"];
     logging_run("{$prepay_id}==" . $prepay_id);
     return $prepay_id;
 }
Exemplo n.º 3
0
 /**
  * 日志操作函数
  * @param $log_content
  */
 private function log($log_content)
 {
     load()->func('logging');
     logging_run($log_content, 'normal', 'lonaking_bb', true);
 }