13283339616 6 年之前
父节点
当前提交
722c96930b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/VestPublish.php

+ 1 - 1
app/Models/VestPublish.php

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