Permalink
Browse files

dida - seo

  • Loading branch information...
1 parent 3734672 commit fabda1f918563ad20b05e8bd3938ac7b1cea1802 @bigml bigml committed May 2, 2012
@@ -2,7 +2,7 @@ regist {
Layout = layout.html
DataGeter = plan_of_recent
Dataset {
- limit = 100
+ limit = 80
Layout {
css = <link rel="stylesheet" type="text/css" href="/css/b/member/regist.css" />
js = <script type="text/javascript" src="/js/b/member/regist.js"></script>
@@ -19,7 +19,7 @@ reset {
Layout = layout.html
DataGeter = plan_of_recent
Dataset {
- limit = 100
+ limit = 80
Layout {
css = <link rel="stylesheet" type="text/css" href="/css/b/member/reset.css" />
js = <script type="text/javascript" src="/js/b/member/reset.js"></script>
@@ -2,7 +2,7 @@ index {
Layout = layout.html
DataGeter = plan_of_recent
Dataset {
- limit = 100
+ limit = 80
Layout {
css = <link rel="stylesheet" type="text/css" href="/css/b/index.css" />
js << EOM
@@ -24,7 +24,7 @@ readme {
Layout = layout.html
DataGeter = plan_of_recent
Dataset {
- limit = 100
+ limit = 80
Layout {
css = <link rel="stylesheet" type="text/css" href="/css/b/readme.css" />
js = <!--<script type="text/javascript" src="/js/b/readme.js"></script>-->
@@ -3,7 +3,7 @@ sitemap_plan {
DataGeter = plan_of_recent
Dataset {
maxday = 1
- limit = 1000
+ limit = 800
}
Output [ftime=%F] = sitemaps/plan/$ftime$.xml
}
@@ -2,11 +2,11 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta name="keywords" content="<?cs var:Layout.keywords ?>imdida,滴嗒,嘀嗒网,拼车,拼车搜索,拼车订阅,长途拼车,上下班拼车,节假日拼车,健康生活,绿色出行" />
- <meta name="description" content="imdida.org 嘀嗒网是一个专业的拼车信息查询、订阅工具。 健康生活,绿色出行。" />
+ <meta name="keywords" content="<?cs alt:Layout.keywords ?>嘀嗒网,拼车,顺风车,拼车线路搜索,拼车线路订阅,长途拼车,上下班拼车,节假日拼车,健康生活,绿色出行<?cs /alt ?>" />
+ <meta name="description" content="<?cs alt:Layout.description ?>imdida.org 嘀嗒网是一个专业的拼车信息查询、订阅工具。 健康生活,绿色出行。<?cs /alt ?>" />
<meta name="robots" content="index,follow" />
<meta name="googlebot" content="index,follow,archive" />
- <title><?cs var: Layout.title ?> - 嘀嗒,专注拼车 健康生活 绿色出行</title>
+ <title><?cs var: Layout.title ?> - 嘀嗒网,专注拼车,健康生活,绿色出行</title>
<link rel="stylesheet" type="text/css" href="/css/b/base.css" />
<?cs var: Layout.css ?>
<?cs linclude:Include.css ?>
@@ -2,8 +2,8 @@
<?cs each:p=Output.plans ?>
<li>
<h2>
- <a href="/plan/info?id=<?cs var:p.id ?>" title="<?cs var:p.saddr ?> <?cs var:p.eaddr ?> 拼车">
- <?cs var:p.nick ?> 邀人 <?cs var:p.sdate ?><?cs var:p.saddr ?><?cs var:p.eaddr ?> 进行拼车
+ <a href="/plan/info?id=<?cs var:p.id ?>" title="<?cs var:p.saddr ?><?cs var:p.eaddr ?>拼车,拼车去<?cs var:p.eaddr ?>">
+ <?cs var:p.nick ?> 邀人 <?cs var:p.sdate ?><?cs var:p.saddr ?>拼车去<?cs var:p.eaddr ?>
</a>
</h2>
</li>
@@ -1,6 +1,6 @@
<?cs include:"macro/plan.cs" ?>
-<h2><?cs var:Output.plan.sdate ?><?cs var:Output.plan.saddr ?><?cs var:Output.plan.eaddr ?> 拼车</h2>
+<h2><?cs var:Output.plan.sdate ?><?cs var:Output.plan.saddr ?><?cs var:Output.plan.eaddr ?>拼车</h2>
<dl class="inp">
<dt>类型:</dt>
@@ -11,9 +11,8 @@
<ul>
<?cs each:p=Output.plans ?>
<li>
- <a href="/plan/info?id=<?cs var:p.id ?>" title="<?cs var:p.saddr ?> <?cs var:p.eaddr ?> 拼车">
- <?cs var:p.nick ?>邀人<?cs var:p.sdate ?>从 <?cs var:p.saddr ?> 至 <?cs
- var:p.eaddr ?> 进行拼车
+ <a href="/plan/info?id=<?cs var:p.id ?>" title="<?cs var:p.saddr ?>至<?cs var:p.eaddr ?>拼车,拼车回<?cs var:p.eaddr ?>">
+ <?cs var:p.nick ?>邀人<?cs var:p.sdate ?>从<?cs var:p.saddr ?>拼车回<?cs var:p.eaddr ?>
</a>
</li>
<?cs /each ?>
View
@@ -31,7 +31,7 @@ NEOERR* bore_data_get(CGI *cgi, HASH *dbh, HASH *evth, session_t *ses)
evt = hash_lookup(evth, "plan");
MCS_NOT_NULLA(evt);
- hdf_set_value(evt->hdfsnd, "limit", "100");
+ hdf_set_value(evt->hdfsnd, "limit", "50");
MEVENT_TRIGGER(evt, NULL, REQ_CMD_PLAN_RECENT, FLAGS_SYNC);
View
@@ -211,15 +211,20 @@ NEOERR* plan_info_data_get(CGI *cgi, HASH *dbh, HASH *evth, session_t *ses)
hdf_copy(cgi->hdf, PRE_OUTPUT".plan", evt->hdfrcv);
- hdf_set_valuef(cgi->hdf, PRE_CFG_LAYOUT".keywords=%s拼车,%s拼车,",
+ hdf_set_valuef(cgi->hdf, PRE_CFG_LAYOUT".keywords=%s%s拼车,拼车去%s",
hdf_get_value(evt->hdfrcv, "saddr", "地球"),
+ hdf_get_value(evt->hdfrcv, "eaddr", "火星"),
hdf_get_value(evt->hdfrcv, "eaddr", "火星"));
- hdf_set_valuef(cgi->hdf, PRE_CFG_LAYOUT".title=%s 邀人 %s%s%s 拼车",
- hdf_get_value(evt->hdfrcv, "nick", "张三"),
- hdf_get_value(evt->hdfrcv, "sdate", "每天"),
+ hdf_set_valuef(cgi->hdf, PRE_CFG_LAYOUT".title=%s%s顺风车",
hdf_get_value(evt->hdfrcv, "saddr", "地球"),
hdf_get_value(evt->hdfrcv, "eaddr", "火星"));
+
+ hdf_set_valuef(cgi->hdf, PRE_CFG_LAYOUT".description=%s %s%s顺风车拼车,%s",
+ hdf_get_value(evt->hdfrcv, "sdate", "每天"),
+ hdf_get_value(evt->hdfrcv, "saddr", "地球"),
+ hdf_get_value(evt->hdfrcv, "eaddr", "火星"),
+ hdf_get_value(evt->hdfrcv, "attach", "顺风车拼车"));
return STATUS_OK;
}
@@ -379,37 +379,41 @@ static NEOERR* plan_cmd_plan_mine(struct plan_entry *e, QueueEntry *q)
static NEOERR* plan_cmd_plan_recent(struct plan_entry *e, QueueEntry *q)
{
- unsigned char *val = NULL; size_t vsize = 0;
+ //unsigned char *val = NULL; size_t vsize = 0;
int maxday, limit;
NEOERR *err;
- struct cache *cd = e->cd;
+ //struct cache *cd = e->cd;
mdb_conn *db = e->db;
REQ_FETCH_PARAM_INT(q->hdfrcv, "maxday", maxday);
REQ_FETCH_PARAM_INT(q->hdfrcv, "limit", limit);
if (limit <= 0) limit = hdf_get_int_value(g_cfg, CONFIG_PATH".recentMax", 100);
+ /*
if (cache_getf(cd, &val, &vsize, PREFIX_RECENT"%d_%d", maxday, limit)) {
unpack_hdf(val, vsize, &q->hdfsnd);
} else {
+ */
if (maxday > 0) {
MDB_QUERY_RAW(db, "plan", _COL_PLAN, "statu < %d AND intime > "
- " current_date - %d LIMIT %d", NULL,
+ " current_date - %d ORDER BY RANDOM() LIMIT %d", NULL,
PLAN_ST_PAUSE, maxday - 1, limit);
} else {
/*
* don't care intime
*/
- MDB_QUERY_RAW(db, "plan", _COL_PLAN, "statu < %d ORDER BY id DESC "
+ MDB_QUERY_RAW(db, "plan", _COL_PLAN, "statu < %d ORDER BY RANDOM() "
" LIMIT %d", NULL, PLAN_ST_PAUSE, limit);
}
err = mdb_set_rows(q->hdfsnd, db, _COL_PLAN, NULL, NULL, MDB_FLAG_EMPTY_OK);
if (err != STATUS_OK) return nerr_pass(err);
+ /*
CACHE_HDF(q->hdfsnd, RECENT_CC_SEC, PREFIX_RECENT"%d_%d", maxday, limit);
}
+ */
return STATUS_OK;
}

0 comments on commit fabda1f

Please sign in to comment.