作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -62,7 +62,11 @@ class RenewProjectController extends BaseController @@ -62,7 +62,11 @@ class RenewProjectController extends BaseController
62 } 62 }
63 //按类型搜索 63 //按类型搜索
64 $map['delete_status'] = 0; 64 $map['delete_status'] = 0;
65 - $map['type'] = ['in',[2,3,4]]; 65 + if(empty($param['type'])){
  66 + $map['type'] = ['in',[2,3,4]];
  67 + }else{
  68 + $map['type'] = $param['type'];
  69 + }
66 $map['remain_day'] = ['<=',15]; 70 $map['remain_day'] = ['<=',15];
67 return $map; 71 return $map;
68 } 72 }
@@ -692,7 +692,7 @@ class ProductLogic extends BaseLogic @@ -692,7 +692,7 @@ class ProductLogic extends BaseLogic
692 'attrs'=>Arr::a2s($info['attrs']), 692 'attrs'=>Arr::a2s($info['attrs']),
693 'attr_id'=>Arr::arrToSet($info['attr_id']), 693 'attr_id'=>Arr::arrToSet($info['attr_id']),
694 'category_id'=>!empty($info['category_id']) ? ','.Arr::arrToSet($info['category_id']).',' : '', 694 'category_id'=>!empty($info['category_id']) ? ','.Arr::arrToSet($info['category_id']).',' : '',
695 - 'keyword_id'=>'', 695 + 'keyword_id'=> '',
696 'intro'=>$info['intro'], 696 'intro'=>$info['intro'],
697 'content'=>$info['content'], 697 'content'=>$info['content'],
698 'describe'=>Arr::a2s($info['describe']), 698 'describe'=>Arr::a2s($info['describe']),