Code Context $comments[$key]['Comment']['username']=isset($userInfo['User']['nick_name'])?$userInfo['User']['nick_name']:"保密";
try{
$comments[$key]['Comment']['avatar']=$userInfo['User']['avatar'];
$id = '18'
$userId = (int) 0
$agreeTopic = array(
'攻略' => '10',
'视频' => '40',
'分享' => '50',
'问答' => '60'
)
$commentTopic = array(
'攻略' => '10',
'医院' => '20',
'医生' => '30',
'视频' => '40',
'分享' => '50',
'问答' => '60',
'新闻' => '70'
)
$info = array(
'Share' => array(
'id' => '18',
'meta_title' => '请问下姐妹们这个价钱正常么?',
'meta_keywords' => '泰国试管婴儿',
'meta_description' => '泰国试管婴儿',
'title' => '请问下姐妹们这个价钱正常么?',
'content' => '问一下有泰国试管经历的姐妹,医院的费用大概要多少钱啊?之前我看有姐妹说8w左右,但是服务公司跟我说得10w,说试管l不是普通试管,更贵一点。 知道的姐妹麻烦跟我说一下.......',
'imgs' => '',
'tag' => '70',
'tag2' => '',
'city_id' => '0',
'hospital_id' => '0',
'uid' => '106',
'is_top' => true,
'sort' => '100',
'comment_num' => '1',
'browse_num' => '1026',
'agree_num' => '1',
'status' => true,
'type' => false,
'is_replay' => true,
'description' => '',
'update_time' => '2017-09-15 16:59:54',
'create_time' => '2017-09-15 16:59:54',
'username' => 'xin新茹',
'avatar' => '/uploads/avatar/image/2018/201899.jpg',
'city' => '保密',
'images' => array()
)
)
$num = (int) 2
$picTopic = array(
'攻略' => '10',
'分享' => '20',
'问答' => '30',
'医院' => '50',
'手机推广医院' => '60'
)
$userInfo = array()
$cyInfo = array()
$picData = array()
$comments = array(
(int) 0 => array(
'Comment' => array(
'id' => '4',
'mate_title' => '',
'meta_keywords' => '',
'meta_description' => '',
'topic_type' => '50',
'topic_id' => '18',
'parent_id' => '0',
'reply_id' => '0',
'uid' => '122',
'content' => '第一漏',
'browse_num' => '0',
'agree_num' => '0',
'is_top' => false,
'sort' => '0',
'comment_time' => '2017-09-18 10:27:21',
'create_time' => '2017-09-18 10:27:21',
'username' => '保密'
)
)
)
$key = (int) 0
$value = array(
'Comment' => array(
'id' => '4',
'mate_title' => '',
'meta_keywords' => '',
'meta_description' => '',
'topic_type' => '50',
'topic_id' => '18',
'parent_id' => '0',
'reply_id' => '0',
'uid' => '122',
'content' => '第一漏',
'browse_num' => '0',
'agree_num' => '0',
'is_top' => false,
'sort' => '0',
'comment_time' => '2017-09-18 10:27:21',
'create_time' => '2017-09-18 10:27:21'
)
)
$childCmt = array()
$childAttr = array()
ShareController::info() - APP/Controller/ShareController.php, line 225
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 118