|
@@ -310,7 +310,7 @@ class Topicdongtai extends Api
|
|
|
$content = input('content','', 'trim');
|
|
|
$images = input('images','', 'trim');
|
|
|
$show_real = input('show_real', 0, 'intval'); //是否标记真人:0=否,1=是
|
|
|
- $address = input('address', '', 'trim'); //位置
|
|
|
+ //$address = input('address', '', 'trim'); //位置
|
|
|
$topic_id = input('topic_id', 0, 'intval'); //热门话题id
|
|
|
$type = input('type', 0, 'intval'); //类型:0=文字,1=图片,2=视频
|
|
|
if(!$content && !$images){
|
|
@@ -322,9 +322,9 @@ class Topicdongtai extends Api
|
|
|
if ($show_real == 1 && $this->auth->real_status != 1) { //验证是否已经通过真人认证
|
|
|
$this->error('您尚未通过真人认证,暂不能标记真人');
|
|
|
}
|
|
|
- if (iconv_strlen($address, 'utf-8') > 255) {
|
|
|
+ /*if (iconv_strlen($address, 'utf-8') > 255) {
|
|
|
$this->error('请选择正确位置');
|
|
|
- }
|
|
|
+ }*/
|
|
|
if ($topic_id) {
|
|
|
$topic_info = Db::name('topic_hub')->where(['id' => $topic_id])->find();
|
|
|
if (!$topic_info) {
|
|
@@ -341,13 +341,15 @@ class Topicdongtai extends Api
|
|
|
//关键字替换
|
|
|
$content = Keyworld::sensitive($content);
|
|
|
|
|
|
+ $address = $this->ip_to_address();
|
|
|
+
|
|
|
$data = [
|
|
|
'topic_id' => $topic_id,
|
|
|
'user_id' => $this->auth->id,
|
|
|
'content' => $content,
|
|
|
'images' => $images,
|
|
|
- 'longitude' => input('longitude',''),
|
|
|
- 'latitude' => input('latitude',''),
|
|
|
+// 'longitude' => input('longitude',''),
|
|
|
+// 'latitude' => input('latitude',''),
|
|
|
'createtime' => time(),
|
|
|
'updatetime' => time(),
|
|
|
'is_show_real' => $show_real,
|