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