|
@@ -86,8 +86,7 @@ class Moment
|
|
|
}
|
|
|
$where['state'] = 1;
|
|
|
$table = $this->table;
|
|
|
- $info = Dever::db($table)->one($where);
|
|
|
-
|
|
|
+ $info = false;
|
|
|
$where['content'] = $content;
|
|
|
|
|
|
if ($pic) {
|
|
@@ -100,7 +99,8 @@ class Moment
|
|
|
$where['to_uid'] = $to_uid;
|
|
|
}
|
|
|
|
|
|
- if ($info && !$to_id) {
|
|
|
+ if ($info && $type == 3 && !$to_id) {
|
|
|
+ $info = Dever::db($table)->one($where);
|
|
|
Dever::alert('已发布过动态,仅能发布一次,可删除旧动态后再添加');
|
|
|
}
|
|
|
//$info = false;
|
|
@@ -179,7 +179,7 @@ class Moment
|
|
|
# 获取热门的子信息
|
|
|
$info['child'] = array();
|
|
|
if ($info['type'] < 20) {
|
|
|
- $child = $this->getData('getHot', $uid, $key, $info['id'], true, 1, false, false, $collection_id);
|
|
|
+ $child = $this->getData('getHot', $uid, $key, $info['id'], true, false, $times, $info['day'], $collection_id);
|
|
|
if ($child && $child['info']) {
|
|
|
$info['child'] = $child['info'];
|
|
|
$info['child_total'] = $child['total'];
|