|
|
@@ -38,11 +38,11 @@ class Pledge extends Api
|
|
|
$income_reta = $this->request->param('income_reta/d', 0);
|
|
|
$map = [];
|
|
|
$order = 'weigh desc,id desc';
|
|
|
- if(!empty($title)) $map[] = ['title', 'LIKE', '%'.$title.'%'];
|
|
|
+ if(!empty($title)) $map['title'] = [ 'LIKE', '%'.$title.'%'];
|
|
|
if ($day_num > 0) $order = 'day_num '.$this->order[$day_num];
|
|
|
if ($income_reta > 0) $order = 'income_reta '.$this->order[$income_reta];
|
|
|
if ($day_num > 0 && $income_reta > 0) $order = 'day_num '.$this->order[$day_num].',income_reta '.$this->order[$income_reta];
|
|
|
-
|
|
|
+
|
|
|
$list = $productPledges
|
|
|
->where('status', $productPledges::Normal)
|
|
|
->where('to_lang', $this->lan)->where('type_id', $type_id)
|