Commit 2f2ebe21 authored by chenzq's avatar chenzq

详情html转码

parent 45d2a897
...@@ -87,9 +87,9 @@ if ($_GPC['action'] == 'edit') { ...@@ -87,9 +87,9 @@ if ($_GPC['action'] == 'edit') {
} else { } else {
$data['images'] = ''; $data['images'] = '';
} }
if (isset($data['content'])) { // if (isset($data['content'])) {
$data['content'] = json_encode($data['content']); // $data['content'] = json_encode($data['content']);
} // }
$data['images'] = trim($data['images'], ','); $data['images'] = trim($data['images'], ',');
$data['update_time'] = time(); $data['update_time'] = time();
...@@ -159,9 +159,7 @@ if (isset($_GPC['id'])) { ...@@ -159,9 +159,7 @@ if (isset($_GPC['id'])) {
if ($info['images']) { if ($info['images']) {
$info['images'] = explode(',', $info['images']); $info['images'] = explode(',', $info['images']);
} }
if ($info['content']) {
$info['content'] = json_decode($info['content']);
}
} }
......
...@@ -8,6 +8,11 @@ global $_W; ...@@ -8,6 +8,11 @@ global $_W;
$ab = pdo_getall('longbing_company_member_level','',array('discount','level','name','price','describe')); $ab = pdo_getall('longbing_company_member_level','',array('discount','level','name','price','describe'));
foreach ($ab as $k =>$c){
$ab[$k]['describe']=$this->toWXml($ab[$k]['describe']);
}
//echo json_encode(array('errno' => 0, 'data' => $ab), JSON_UNESCAPED_UNICODE); //echo json_encode(array('errno' => 0, 'data' => $ab), JSON_UNESCAPED_UNICODE);
return $this->result(0, '',array('list'=>$ab), array()); return $this->result(0, '',array('list'=>$ab), array());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment