|
@@ -39,12 +39,14 @@ class HouseKeepingController extends JBaseController
|
|
|
$c= new EMongoCriteria();
|
|
|
$c->status('==',2);
|
|
|
$tmp = Store::model()->findAll($c);
|
|
|
+
|
|
|
$data = array();
|
|
|
foreach ($tmp as $k => $v) {
|
|
|
+
|
|
|
$data[$k]['store_id'] = $v->store_id;
|
|
|
$data[$k]['store_name'] = $v->store_name;
|
|
|
}
|
|
|
- return json_encode($data);
|
|
|
+ echo json_encode($data);
|
|
|
}
|
|
|
|
|
|
public function actionEdit()
|