zhangxiaobin 1 anno fa
parent
commit
e0fdf6163d
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  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