瀏覽代碼

签到调整

zhangxiaobin 1 年之前
父節點
當前提交
e0fdf6163d
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      application/api/controller/Usersign.php
  2. 3 3
      application/extra/site.php

+ 1 - 1
application/api/controller/Usersign.php

@@ -137,7 +137,7 @@ class Usersign extends Api
                 $min = isset($signJewelArr[0]) ? $signJewelArr[0] : 1;
                 $max = isset($signJewelArr[1]) ? $signJewelArr[1] : 1;
                 $gift['num'] = rand($min,$max);
-                if ($gift < 1) {
+                if ($gift['num'] < 1) {
                     throw new Exception('签到功能已被关闭');
                 }
                 $data['goldnum'] = $gift['num'];

File diff suppressed because it is too large
+ 3 - 3
application/extra/site.php


Some files were not shown because too many files changed in this diff