Commit f2b00bc3 authored by fangliyan's avatar fangliyan

优化展示

parent d7f279e7
......@@ -1128,14 +1128,17 @@ class User_model extends MY_Model
//获取虚拟号码
foreach($collect_array as &$value){
//转化成utf-8
$collect_value = mb_convert_encoding($value['collect_value'], 'UTF-8', 'GBK');
$collect_value = unserialize($collect_value);
if($collect_value){
//转化成gbk
foreach ($collect_value as $key => $a) {
$collect_value[$key] = mb_convert_encoding($a, 'GBK', 'UTF-8');
$collect_value = unserialize($value['collect_value']);
if($value['kind'] == 2 && empty($collect_value)) {
//转化成utf-8
$collect_value = mb_convert_encoding($value['collect_value'], 'UTF-8', 'GBK');
$collect_value = unserialize($collect_value);
if ($collect_value) {
//转化成gbk
foreach ($collect_value as $key => $a) {
$collect_value[$key] = mb_convert_encoding($a, 'GBK', 'UTF-8');
}
}
}
if(is_array($collect_value)){
......
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