...
|
...
|
@@ -297,7 +297,7 @@ class UserModel |
|
|
$records = UserData::browseRecord($uid, $udid, $page, $limit);
|
|
|
|
|
|
if (!$records) {
|
|
|
$result['walkwayUrl'] = '/product/new';
|
|
|
$result['walkwayUrl'] = Helpers::url('/product/new');
|
|
|
$result['noRecord'] = true;
|
|
|
|
|
|
return $result;
|
...
|
...
|
@@ -308,7 +308,7 @@ class UserModel |
|
|
|
|
|
// 不能再查到结果了
|
|
|
if ($page == 1 && $records['data']['total'] === 0) {
|
|
|
$result['walkwayUrl'] = '/product/new';
|
|
|
$result['walkwayUrl'] = Helpers::url('/product/new');
|
|
|
$result['noRecord'] = true;
|
|
|
} else {
|
|
|
$data = $records['data']['product_list'];
|
...
|
...
|
@@ -781,15 +781,12 @@ class UserModel |
|
|
$result = array();
|
|
|
|
|
|
$helpListData = UserData::helpListData();
|
|
|
|
|
|
if (isset($helpListData['data']) && !empty($helpListData['data'])) {
|
|
|
$help = $helpListData['data'];
|
|
|
|
|
|
$one = array();
|
|
|
foreach ($help as $val) {
|
|
|
foreach ($helpListData['data'] as $val) {
|
|
|
$one = array();
|
|
|
$one['name'] = $val['caption'];
|
|
|
$one['url'] = Helpers::url('/home/helpdetail/', array('code' => $val['code']));
|
|
|
$one['url'] = Helpers::url('/home/helpdetail', array('code' => $val['code']));
|
|
|
|
|
|
$result['iHelp'][] = $one;
|
|
|
}
|
...
|
...
|
@@ -806,7 +803,13 @@ class UserModel |
|
|
*/
|
|
|
public static function getHelpDetailData($code)
|
|
|
{
|
|
|
return UserData::helpDetailData($code);
|
|
|
$result = array();
|
|
|
|
|
|
if (isset($code)) {
|
|
|
$result = UserData::helpDetailData($code);
|
|
|
}
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|