|
@@ -36,7 +36,12 @@ class Comment extends Common |
|
@@ -36,7 +36,12 @@ class Comment extends Common |
|
36
|
$data['status'] = 1;
|
36
|
$data['status'] = 1;
|
|
37
|
$data['create_time'] = strtotime($data['create_time']);
|
37
|
$data['create_time'] = strtotime($data['create_time']);
|
|
38
|
$data['enclosure'] = json_encode($data['enclosure']);
|
38
|
$data['enclosure'] = json_encode($data['enclosure']);
|
|
39
|
- #unset($data['enclosure']);
|
39
|
+
|
|
|
|
40
|
+ #匿名评价openid默认红旗
|
|
|
|
41
|
+ if($data['isnoshow']==1){
|
|
|
|
42
|
+ $data['author_openid'] = 'oB-xJ5DIWrC6MECaXfql2GvTmQTU';#红旗
|
|
|
|
43
|
+ }
|
|
|
|
44
|
+
|
|
40
|
$succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data);
|
45
|
$succ = httpRequest(ON_LINE.'App.User.SetComment', 'post', $data);
|
|
41
|
$succ = json_decode($succ,true);
|
46
|
$succ = json_decode($succ,true);
|
|
42
|
if($succ['data']){
|
47
|
if($succ['data']){
|