moonsflyer 4 月之前
父節點
當前提交
de0221b391
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      phalapi/src/app/Model/Home.php

+ 2 - 2
phalapi/src/app/Model/Home.php

@@ -154,10 +154,10 @@ class Home extends NotORM{
     public function getClassidShopLists($type,$province,$name,$p){
 //        $where=['type'=>$type];
 //        $where['type'] = $type;
-        $where = 'type={$type}';
+        $where = 'type=' .$type;
         if(!empty($province)){
 //            $where['province'] = $province;
-            $where .= ' and province={$province}';
+            $where .= ' and province='.$province;
         }
         if(!empty($name)){
 //            $where['province'] = $province;