Browse Source

fix #850 vod_play_from LIKE查询问题

magicblack 3 years ago
parent
commit
fc870aedec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Provide.php

+ 1 - 1
application/api/controller/Provide.php

@@ -71,7 +71,7 @@ class Provide extends Base
                 $GLOBALS['config']['api']['vod']['from'] = $this->_param['from'];
             }
             if (!empty($GLOBALS['config']['api']['vod']['from'])) {
-                $where['vod_play_from'] = ['like', '%' . $GLOBALS['config']['api']['vod']['from'] . '%'];
+                $where['vod_play_from'] = ['eq', trim($GLOBALS['config']['api']['vod']['from'])];
             }
 
             if (!empty($GLOBALS['config']['api']['vod']['datafilter'])) {