Kaynağa Gözat

门户广告位支持web和MOBILE

吴志根 3 yıl önce
ebeveyn
işleme
5c747006e5

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/publicmethod/bannermag/SQL/广告位查询.sql

@@ -1,5 +1,5 @@
 select tbannerlocationid, flocation, fisused
 from tbannerlocation
 where siteid = $siteid$
-  and fclienttype = 'WEB'
+  and fclienttype = $fclienttype$
   and flocation LIKE('portal%')

+ 2 - 0
src/dsb/com/cnd3b/restcontroller/publicmethod/bannermag/bannermag.java

@@ -50,8 +50,10 @@ public class bannermag extends Controller {
      */
     public String getPortalBannerList() {
         //fclienttype:web,MOBILE
+        String fclienttype = content.getString("fclienttype");
         SQLFactory locationSQL = new SQLFactory(this, "¹ã¸æÎ»²éѯ");
         locationSQL.addParameter("siteid", siteid);
+        locationSQL.addParameter("fclienttype", fclienttype);
         Rows locationrows = dbConnect.runSqlQuery(locationSQL.getSQL());
         SQLFactory bannerSQl = new SQLFactory(this, "ÂÖ²¥Í¼²éѯ");
         bannerSQl.addParameter("siteid", siteid);