module\mall\global.func.php
function get_coupons($username, $seller) {
$lists = array();
$result = DB::query("SELECt * FROM ".DT_PRE."finance_coupon WHERe username='$username' AND seller='$seller' AND fromtime<".DT_TIME." AND totime>".DT_TIME." AND oid=0 ORDER BY price ASC LIMIT 10", 'CACHE');
while($r = DB::fetch_array($result)) {
$lists[] = $r;
}
return $lists;
}
AND seller='$seller' 改成 AND (seller='$seller' OR seller='')