This commit is contained in:
songliang 2023-07-07 17:58:21 +08:00
parent 83af3a1812
commit 5cfcb7b361

View File

@ -816,12 +816,14 @@ 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 . ') ';