13283339616 6 years ago
parent
commit
17149b33d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Models/VestPublish.php

+ 1 - 1
app/Models/VestPublish.php

142
         $vest_imgs=json_decode($vest_imgs,true);
142
         $vest_imgs=json_decode($vest_imgs,true);
143
 //        $vest_imgs=array_merge($user_img,$vest_imgs);
143
 //        $vest_imgs=array_merge($user_img,$vest_imgs);
144
         //随机生成图集点赞数
144
         //随机生成图集点赞数
145
-        $thumb_up_num=intval(abs(crc32($vest_id)/1000000))+$user_num;
145
+        $thumb_up_num=intval(abs(crc32($vest_id)/1000000))+($vest_id%3*100)+$user_num;
146
         //$thumb_up_num=0;//测试数据
146
         //$thumb_up_num=0;//测试数据
147
         //判断点赞数是否为空
147
         //判断点赞数是否为空
148
         if ($thumb_up_num==0){
148
         if ($thumb_up_num==0){