chuweiqiang 11 months ago
parent
commit
0f219b712b
2 changed files with 3 additions and 4 deletions
  1. 1 2
      .idea/workspace.xml
  2. 2 2
      application/api/controller/Article.php

+ 1 - 2
.idea/workspace.xml

@@ -2,7 +2,6 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/api/controller/Article.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Article.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -596,7 +595,7 @@
       <workItem from="1713916802858" duration="19129000" />
       <workItem from="1714004926744" duration="26309000" />
       <workItem from="1714091498498" duration="11116000" />
-      <workItem from="1714109915098" duration="6474000" />
+      <workItem from="1714109915098" duration="6502000" />
     </task>
     <servers />
   </component>

+ 2 - 2
application/api/controller/Article.php

@@ -393,8 +393,8 @@ class Article extends Base
         if($is_release && $detail['is_deleted'] )$this->error('该图文已下线');
         if(!$detail['is_release'] && ($detail['is_deleted'] == 1 || $detail['status'] == 0))$this->error('该图文已下线');
         if(in_array($this->source_type,[1])) $detail['content'] = openssl_encrypt($detail['content'],'DES-ECB',123456,0);
-        $detail['read_num']  = array_sum(array_column($detail['item_list'],'read_num'));
-        $detail['read_num'] = numTransform($detail['read_num']);
+//        $detail['read_num']  = array_sum(array_column($detail['item_list'],'read_num'));
+//        $detail['read_num'] = numTransform($detail['read_num']);
         $detail['follow_switch'] =  PlatformSwitch::checkSwitch($this->user_id,$detail['id'],3);
         $recently_id = UserTrack::getRecentlyTrack($this->user_id,3,$detail['id']);
         $level_id = UserLevelRank::getUserVip($this->user_id);