rabin 5 years ago
parent
commit
26c8209b7a

+ 13 - 0
doc/apidoc.php

@@ -22,6 +22,19 @@
  * @apiSuccess {Number}   page.next_page 下一页
  * @apiSuccess {Number}   page.prev_page 上一页
  * @apiSuccess {Number}   page.status 是否有下一页数据,0为没有
+ * @apiSuccess {Object[]}   ad 广告信息,广告信息是个字典数据结构,其中的key就是广告位的标注,通过标识可以把广告放置到相应的位置
+ * @apiSuccess {Number}   ad.id 广告位id
+ * @apiSuccess {Number}   ad.page_id 广告页面id
+ * @apiSuccess {String}   ad.name 广告位名称
+ * @apiSuccess {Number}   ad.type 广告投放类型:1是图片广告,2视频广告,3是代码广告,4是切屏广告
+ * @apiSuccess {Object[]}   ad.data 广告投放数据
+ * @apiSuccess {Number}   ad.data.id 广告投放id
+ * @apiSuccess {String}   ad.data.name 广告投放名称
+ * @apiSuccess {Number}   ad.data.type 广告时效类型:1是永久显示,2是时间段展示,后台已做好判断,无需处理
+ * @apiSuccess {String}   ad.data.pic 图片或者切屏广告的图片地址
+ * @apiSuccess {String}   ad.data.video 视频广告的视频地址
+ * @apiSuccess {String}   ad.data.code 代码广告的代码
+ * @apiSuccess {String}   ad.data.link 跳转链接,当为空时,跳转到首页
  */
 
 /**

+ 23 - 0
doc/apidoc_v1.php

@@ -452,4 +452,27 @@
  * @apiSuccess {String}   active.invite_title 邀请好友标题
  * @apiSuccess {String}   active.invite_desc 邀请好友描述 换行用\n隔开
  * @apiSuccess {String}   active.content 活动说明,富文本
+ */
+
+/**
+ * @api {get} package/log/?api.push 日志记录
+ * @apiVersion 1.0.0
+ * @apiName api.push
+ * @apiGroup Log
+ *
+ * @apiDescription 日志记录
+ *
+ * @apiParam {String} project 项目,目前有两个值:ad_show为广告曝光,就是打开页面时需要访问本接口,ad_click为广告点击,点击某个广告时需要访问本接口
+ * @apiParam {String} source 来源,暂时写死:jingmei
+ * @apiParam {String} system 系统,1是h5,2是安卓,3是苹果,4是微信小程序
+ * @apiParam {String} uid 用户id,如果未登录需要传入-1
+ * @apiParam {String} ip 用户ip,如果未登录,会通过ip识别用户
+ * @apiParam {String} ua ua信息
+ * @apiParam {String} os 操作系统
+ * @apiParam {String} browser 浏览器
+ * @apiParam {String} ck_mobile 是否手机,请写死为1
+ * @apiParam {String} ck_wechat 是否微信,请写死为2,如果是小程序或者h5,请根据实际情况来写值,1就是微信,2不是
+ * @apiParam {String} ad_page_id 广告页面id
+ * @apiParam {String} ad_info_id 广告位id
+ * @apiParam {String} ad_data_id 广告投放id
  */

+ 3 - 3
h5/assets/mobile/article.html

@@ -81,7 +81,7 @@
         <{elseif($v['content']['status'] == 1):}>
         <div class="live-notice" style="display:none;">
               <div class="notice-time">开播时间 <{$v['content']['sdate_time']}></div>
-              <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,开启直播提醒</a>
+              <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,开启直播提醒</a>
               <!--
               <{if($v['content']['user_act']['note'] == 1):}>
               <a id="live_note_<{$v['content']['id']}>" href="jstyle://live_note?id=<{$k}>&live_id=<{$v['content']['id']}>&live_status=<{$v['content']['status']}>&note=1" class="btn-notice">已设置提醒</a>
@@ -144,7 +144,7 @@
       </div>
       <a class="btn-expand">&nbsp;</a>
     </div>
-    <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,查看更多内容</a>
+    <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,查看更多内容</a>
     <{if(isset($comment) && $comment && in_array(2, $info['function'])):}>
     <div class="comments">
       <div class='title'><span>热门评论</span></div>
@@ -169,7 +169,7 @@
         <{endloop}>
       </div>
     </div>
-    <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,查看全部评论</a>
+    <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,查看全部评论</a>
     <{endif}>
     
 

+ 3 - 3
h5/assets/mobile/feature.html

@@ -64,7 +64,7 @@
         <{elseif($v['content']['status'] == 1):}>
         <div class="live-notice" style="display:none;">
               <div class="notice-time">开播时间 <{$v['content']['sdate_time']}></div>
-              <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,开启直播提醒</a>
+              <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,开启直播提醒</a>
               <!--
               <{if($v['content']['user_act']['note'] == 1):}>
               <a id="live_note_<{$v['content']['id']}>" href="jstyle://live_note?id=<{$k}>&live_id=<{$v['content']['id']}>&live_status=<{$v['content']['status']}>&note=1" class="btn-notice">已设置提醒</a>
@@ -125,7 +125,7 @@
       </div>
       <a class="btn-expand">&nbsp;</a>
     </div>
-    <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,查看更多内容</a>
+    <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,查看更多内容</a>
     <{if(isset($comment) && $comment && in_array(2, $info['function'])):}>
     <div class="comments">
       <div class='title'><span>热门评论</span></div>
@@ -150,7 +150,7 @@
         <{endloop}>
       </div>
     </div>
-    <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,查看全部评论</a>
+    <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,查看全部评论</a>
     <{endif}>
     
 

+ 3 - 3
h5/assets/mobile/live.html

@@ -35,10 +35,10 @@
       <{if($info['status'] == 1):}>
       <!-- 未开始 -->
       <div class="live-forecast"><span>本次直播将于<{$info['sdate_time']}>开始</span></div>
-      <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,开启直播提醒</a>
+      <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,开启直播提醒</a>
       <{elseif($info['status'] == 3):}>
       <!-- 已结束 -->
-      <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,查看更多精彩直播</a>
+      <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,查看更多精彩直播</a>
 
       <{endif}>
       <div class="rich-wrapper">
@@ -75,7 +75,7 @@
           </div>
         </div>
         <{endloop}>
-        <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,查看全部评论</a>
+        <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,查看全部评论</a>
       </div>
       
       <{endif}>

+ 1 - 1
h5/assets/mobile/video.html

@@ -61,7 +61,7 @@
         <{endloop}>
       </div>
     </div>
-    <a class="app-open" href="<{$app}>">打开JSTYLE精美APP,查看全部评论</a>
+    <a class="app-open" href="<{$app}>" style="display:none;">打开JSTYLE精美APP,查看全部评论</a>
     <{endif}>
     
 

+ 18 - 1
journal/database/info.php

@@ -489,7 +489,24 @@ $config = array
         (
             'type'      => 'text-255',
             'name'      => '购买说明',
-            'default'   => '',
+            'default'   => "<p>
+	1、兑换成功后可直接点击【阅读】查看电子刊内容;&nbsp;
+</p>
+<p>
+	2、电子刊为虚拟商品,如无系统问题,兑换后不可退款;
+</p>
+<p>
+	&nbsp;3、购买多少本就会生成多少兑换码,每个兑换码只能被激活一次;
+</p>
+<p>
+	&nbsp;4、当购买成功后,系统会自动激活一个兑换码;&nbsp;
+</p>
+<p>
+	5、若您购买了多本,可将剩余兑换码赠送好友;
+</p>
+<p>
+	&nbsp;6、如有其它问题可咨询在线客服。
+</p>",
             'desc'      => '请输入内容',
             'match'     => 'is_string',
             'update'    => 'editor',