This commit is contained in:
songliang 2023-07-14 14:43:53 +08:00
parent 9526252f38
commit aa70d11a5b

View File

@ -307,14 +307,12 @@ class MarketController extends BaseAuthedController
};
$search_filter_fn = function ($f) {
$str = '';
error_log('search_filter ' . json_encode($f));
$arr_options = array();
foreach ($f as $v) {
if (!empty($v)) {
array_push($arr_options, 'c_name=\'' . $v . '\' OR token_id=\'' . $v . '\' ');
}
}
error_log('$$search_filter ' . json_encode($arr_options));
if (count($arr_options) > 0) {
$str = implode('OR ', $arr_options);
$str = 'AND (' . $str . ') ';