<?php
/**
* 梦昂文章图文模块微站定义
*
* @author 梦昂科技
* @url http://bbs.we7.cc/
*/
defined('IN_IA') or exit('Access Denied');
define("COOKIE_FILE", IA_ROOT . '/addons/tech_superarticle/pic.cookie');
define("COOKIE_FILE1", IA_ROOT . '/addons/tech_superarticle/pic1.cookie');
define("COOKIE_FILE2", IA_ROOT . '/addons/tech_superarticle/pic2.cookie');
require_once IA_ROOT . '/addons/tech_superarticle/public/QueryList.class.php';
ini_set('display_errors',1); //错误信息
ini_set('display_startup_errors',1); //php启动错误信息
error_reporting(1);
class Tech_superarticleModuleSite extends WeModuleSite {
public function doMobileWx_list() {
global $_W, $_GPC;
ini_set('display_errors',1); //错误信息
ini_set('display_startup_errors',1); //php启动错误信息
error_reporting(1);
$settings = $this->module['config'];
if (empty($_GPC['c_id'])) {
$category = pdo_fetchall("SELECT * FROM " . tablename('tech_superarticle_category') . " WHERE uniacid = '{$_W['uniacid']}' AND enabled = 1 AND qd_enabled = 1 ORDER BY c_order DESC, id DESC LIMIT 50");
$data['category'] = $category;
}
$c_id = !empty($_GPC['c_id']) ? intval($_GPC['c_id']) : $category[0]['id'];
$pindex = max(1, intval($_GPC['pindex']));
$psize = 20;
$articles = pdo_fetchall("select a.id,a.title,a.desc,a.thumb,a.createtime,a.author, a.imgs, a.yuenum, a.webview, s.yueduliang FROM ".tablename('tech_superarticle_article')." as a left join ".tablename('tech_superarticle_setting')." as s on s.ar_id = a.id WHERE a.eid = '{$_W['uniacid']}' AND a.category_id = '{$c_id}' AND a.is_delete = 0 AND a.is_save = 1 ORDER BY a.a_order DESC, a.createtime DESC, a.id DESC LIMIT ".($pindex - 1) * $psize.",{$psize}");
if (empty($articles)) {
$art_data = array('code' => 0, 'art_infos' => $art_infos, 'isend' => 1, 'navs' => $navs);
}
if ($settings['wxapp_list_llz_enabled'] == 1 && !empty($settings['wxapp_list_llz_id'])) {
if (intval($settings['wxapp_list_llz_pl'])>=1 && intval($settings['wxapp_list_llz_pl'])<=10) {
$ad_pl = intval($settings['wxapp_list_llz_pl']);
} else {
$ad_pl = 10;
}
}
$i = 0;
foreach ($articles as $key => $value) {
$art_infos[$i]['type'] = 1;
$art_infos[$i]['ad'] = 0;
$imgs1 = unserialize($value['imgs']);
if (sizeof($imgs1) >= 3) {
$art_infos[$i]['type'] = 3;
$imgs = array($imgs1[0], $imgs1[1], $imgs1[2]);
}
$art_infos[$i]['title'] = $value['title'];
$art_infos[$i]['desc'] = $value['desc'];
$art_infos[$i]['img'] = $value['thumb'];
$art_infos[$i]['createtime'] = date('Y-m-d', $value['createtime']);
$art_infos[$i]['author'] = !empty($value['author']) ? $value['author'] : $settings['wxapp_name'];
$art_infos[$i]['id'] = $value['id'];
$art_infos[$i]['webview'] = $value['webview'];
if ($value['webview']) {
$art_infos[$i]['url'] = urlencode($_W['siteroot'].'app/'.substr($this->createMobileUrl('detail', array('id' => $value['id'])), 2));
}
$art_infos[$i]['imgs'] = $imgs;
$art_infos[$i]['v_num'] = $value['yuenum'] + $value['yueduliang'];
$i++;
if ($ad_pl >= 1) {
if (($key+1)%$ad_pl == 0) {
$art_infos[$i]['ad'] = 1;
$art_infos[$i]['ad_id'] = $settings['wxapp_list_llz_id'];
$i++;
}
}
}
$navs = array('code' => 0);
if (empty($art_infos)) {
$art_data = array('code' => 0, 'art_infos' => $art_infos, 'isend' => 1, 'navs' => $navs);
} else {
if (sizeof($art_infos) == 20) {
$art_data = array('code' => 1, 'art_infos' => $art_infos, 'isend' => 0, 'navs' => $navs);
} else {
$art_data = array('code' => 1, 'art_infos' => $art_infos, 'isend' => 1, 'navs' => $navs);
}
}
if ($settings['wxapp_list_diy_enabled'] == 1 && !empty($settings['wxapp_list_diy_appid'])) {
$diy_ad['type'] = 1;
$diy_ad['key'] = $settings['wxapp_list_diy_appid'];
$diy_ad['lj'] = $settings['wxapp_list_diy_lj'];
} elseif ($settings['wxapp_list_diy_enabled'] == 2 && !empty($settings['wxapp_list_diy_link'])) {
$diy_ad['type'] = 2;
$diy_ad['key'] = urlencode($settings['wxapp_list_diy_link']);
} elseif ($settings['wxapp_list_diy_enabled'] == 3 && !empty($settings['wxapp_list_diy_num'])) {
$diy_ad['type'] = 3;
$diy_ad['key'] = $settings['wxapp_list_diy_num'];
} else {
$diy_ad['type'] = 0;
}
$diy_ad['img'] = tomedia($settings['wxapp_list_diy_img']);
$data['diy_ad'] = $diy_ad;
$data['share'] = $this->getshare();
$data['art_data'] = $art_data;
$data['title'] = !empty($settings['wxapp_name']) ? $settings['wxapp_name'] : '资讯';
$data['ad_cp']['time'] = $settings['ad_cp_time']*1000;
$data['ad_cp']['enabled'][] = $settings['ad_cp_list'];
$data['ad_cp']['enabled'][] = $settings['ad_cp_detail'];
$data['ad_cp']['id'][] = $settings['ad_cp_list_id'];
$data['ad_cp']['id'][] = $settings['ad_cp_detail_id'];
die(json_encode(array('code' => 1, 'data' => $data)));
}
public function doMobileWx_detail() {
$settings = $this->module['config'];
global $_W,$_GPC;
$id = intval($_GPC['id']);
$member = $this->check_member(0);
$getinfo = (empty($member['heading']) && empty($member['nickname'])) ? 1 : 0;
$openid = $_W['openid'];
$ar = pdo_fetchcolumn("select * from ".tablename('tech_superarticle_article')." where eid = ".$_W['uniacid']." and id = ".$id);
if(!empty($ar)){
//更新访问次数
pdo_query("update ".tablename('tech_superarticle_article')." set yuenum = yuenum + 1 where id=".$id);
$article = pdo_fetch("select s.is_comment,s.is_yueduliang,s.yueduliang,s.is_dianzan,s.dianzanliang,s.yuanwen_link,s.is_own,s.comment,s.dashang,s.yuanwen,a.* from ".tablename('tech_superarticle_article')." as a left join ".tablename('tech_superarticle_setting')." as s on a.id = s.ar_id where a.id =:id and a.eid=:eid",array(':eid'=>$_W['uniacid'],':id'=>$id));
if (empty($article['fx_img'])) {
$article['fx_img'] = tomedia($settings['wxapp_img']);
}
if($article['is_delete']==1){
message('您访问的文章已经被删除!');
}
$article['videoarr'] = '';
$article['createtime'] = date('Y-m-d', $article['createtime']);
$art_content = $article['content'];
$reg = array('src' => array('', 'src'));
$rang = "iframe";
$content_src = new QueryList($art_content,$reg,$rang,1);
$content_arr = $content_src->jsonArr;
load()->func('communication');
foreach ($content_arr as $key => $value) {
if (!empty($value['src']) && strpos($value['src'],'v.qq.com')) {
$str = $value['src'];
$start = strpos($str,'vid=') + 4;
$str = substr($str, $start);
$stop = strpos($str,'&');
$vids = substr($str, 0, $stop);
$url = 'http://vv.video.qq.com/getinfo?vids='.$vids.'&platform=101001&charge=0&otype=json';
$response = ihttp_get($url);
$res = $response['content'];
$res = substr($res, 13, -1);
$res = json_decode($res, 1);
$videourl = $res['vl']['vi'][0]['ul']['ui'][0]['url'].$res['vl']['vi'][0]['fn'].'?vkey='.$res['vl']['vi'][0]['fvkey'];
$src1 = str_replace('&', '&', $value['src']);
$article['content'] = str_replace($src1, $videourl, $article['content']);
$article['content'] = str_replace($value['src'], $videourl, $article['content']);
}
}
$art_content = $article['content'];
$reg = array('weixinAudio' => array('.weixinAudio', 'html'));
$rang = "";
$content_src = new QueryList($art_content,$reg,$rang,1);
$content_arr = $content_src->jsonArr;
foreach ($content_arr as $key => $value) {
if (!empty($value['weixinAudio'])) {
$art_content1 = $value['weixinAudio'];
$reg1 = array('src' => array('audio', 'src'), 'title' => array('.share_audio_title', 'html'), 'author' => array('.share_audio_tips', 'html'));
$rang1 = "";
$content_src1 = new QueryList($art_content1,$reg1,$rang1,1
没有合适的资源?快使用搜索试试~ 我知道了~
梦昂图文V20.0.60开源版 小程序公众号源码
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共898个文件
png:406个
js:120个
html:90个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
温馨提示
商业版和开源版,两个版本功能完全一样,只是一个是加密的、一个是没有加密的;如果不是打算购买后进行二次开发话,您购买商业版即可,后续需要开源版的时候也可以补差价升级;
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/EXE.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
共 898 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- slliang832023-05-12资源使用价值高,内容详实,给了我很多新想法,感谢大佬分享~
- jiange00862023-02-06感谢资源主的分享,这个资源对我来说很有用,内容描述详尽,值得借鉴。
![avatar](https://profile-avatar.csdnimg.cn/089b4b984880472ebad12b8b158c5a5b_unbelievevc.jpg!1)
智慧浩海
- 粉丝: 1w+
- 资源: 5196
![benefits](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-1.c8e153b4.png)
下载权益
![privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-2.ec46750a.png)
C知道特权
![article](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-3.fc5e5fb6.png)
VIP文章
![course-privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-4.320a6894.png)
课程特权
![rights](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-icon.fe0226a8.png)
开通VIP
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)