WIN-2308041133\Administrator 12 часов назад
Родитель
Сommit
82e35c7297
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/api/controller/User.php

+ 2 - 2
app/api/controller/User.php

@@ -1721,11 +1721,11 @@ class User extends BaseController
         $where = [];
         $where[] = ['uid', '=', $uid];
         
-        if (!empty($post['type']) && in_array(strval($post['type']), ["1", "-1"])) {
+//        if (!empty($post['type'])) {
             if ($post['type'] >-1){
                 $where[] = ['type', '=', $post['type']];
             }
-        }
+//        }
         
         if (!empty($post['order_sn'])) {
             $where[] = ['order_id', 'like', '%' . $post['order_sn'] . '%'];