细节优化
parent
dc94722dac
commit
a21cdc5fff
|
|
@ -201,6 +201,7 @@ class AppCenterNav
|
|||
'is_page' => 1,
|
||||
'order_by' => 'sort asc,id asc',
|
||||
'is_handle_time_field' => 1,
|
||||
'is_handle_annex_field' => 1,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -189,6 +189,7 @@ class AppHomeNav
|
|||
'is_page' => 1,
|
||||
'order_by' => 'sort asc,id asc',
|
||||
'is_handle_time_field' => 1,
|
||||
'is_handle_annex_field' => 1,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,9 +169,10 @@ class CustomView
|
|||
],
|
||||
// 数据配置
|
||||
'data' => [
|
||||
'table_name' => 'CustomView',
|
||||
'data_handle' => 'CustomViewService::CustomViewListHandle',
|
||||
'is_page' => 1,
|
||||
'table_name' => 'CustomView',
|
||||
'data_handle' => 'CustomViewService::CustomViewListHandle',
|
||||
'is_page' => 1,
|
||||
'is_handle_annex_field' => 1,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,9 +195,10 @@ class Design
|
|||
],
|
||||
// 数据配置
|
||||
'data' => [
|
||||
'table_name' => 'Design',
|
||||
'data_handle' => 'DesignService::DesignListHandle',
|
||||
'is_page' => 1,
|
||||
'table_name' => 'Design',
|
||||
'data_handle' => 'DesignService::DesignListHandle',
|
||||
'is_page' => 1,
|
||||
'is_handle_annex_field' => 1,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ class QuickNav
|
|||
'is_page' => 1,
|
||||
'order_by' => 'sort asc,id asc',
|
||||
'is_handle_time_field' => 1,
|
||||
'is_handle_annex_field' => 1,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ class Slide
|
|||
'is_page' => 1,
|
||||
'order_by' => 'sort asc,id asc',
|
||||
'is_handle_time_field' => 1,
|
||||
'is_handle_annex_field' => 1,
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
|
||||
<!-- footer start -->
|
||||
{{include file="public/footer" /}}
|
||||
<!-- footer end -->
|
||||
|
|
@ -428,7 +428,7 @@ class FormHandleModule
|
|||
|
||||
// 附件字段
|
||||
$is_handle_annex_field = isset($form_data['is_handle_annex_field']) && $form_data['is_handle_annex_field'] == 1;
|
||||
$handle_annex_fields = empty($form_data['handle_annex_fields']) ? ['icon', 'images', 'images_url', 'video', 'video_url'] : (is_array($form_data['handle_annex_fields']) ? $form_data['handle_annex_fields'] : explode(',', $form_data['handle_annex_fields']));
|
||||
$handle_annex_fields = empty($form_data['handle_annex_fields']) ? ['logo', 'icon', 'images', 'images_url', 'video', 'video_url'] : (is_array($form_data['handle_annex_fields']) ? $form_data['handle_annex_fields'] : explode(',', $form_data['handle_annex_fields']));
|
||||
|
||||
// 1. 展示字段指定数组转换处理
|
||||
// 2. 状态字段按照搜索列表转换处理
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ class AppMiniUserService
|
|||
// 是否重新获取用户信息
|
||||
if($status)
|
||||
{
|
||||
$user = UserService::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$user['id']]);
|
||||
$user = UserService::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$user['id']]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -447,7 +447,7 @@ class AppMiniUserService
|
|||
// 是否重新获取用户信息
|
||||
if($status)
|
||||
{
|
||||
$user = UserService::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$user['id']]);
|
||||
$user = UserService::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$user['id']]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -659,7 +659,7 @@ class AppMiniUserService
|
|||
// 是否重新获取用户信息
|
||||
if($status)
|
||||
{
|
||||
$user = UserService::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$user['id']]);
|
||||
$user = UserService::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$user['id']]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,12 @@ class CustomViewService
|
|||
$common_is_text_list = MyLang('common_is_text_list');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// logo
|
||||
if(array_key_exists('logo', $v))
|
||||
{
|
||||
$v['logo'] = ResourcesService::AttachmentPathViewHandle($v['logo']);
|
||||
}
|
||||
|
||||
// 内容
|
||||
if(isset($v['html_content']))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2918,7 +2918,7 @@ class GoodsService
|
|||
public static function GoodsBreadcrumbData($goods)
|
||||
{
|
||||
// 从缓存获取
|
||||
$key = SystemService::CacheKey('shopxo.cache_goods_detail_breadcrumb_key');
|
||||
$key = SystemService::CacheKey('shopxo.cache_goods_detail_breadcrumb_key').$goods['id'];
|
||||
$data = MyCache($key);
|
||||
if($data === null || MyEnv('app_debug'))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -255,18 +255,6 @@ class UserService
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 非退出操作则重新设置用户信息
|
||||
if(!empty($user_login_info) && RequestAction() != 'logout' && MyInput('pluginsaction') != 'logout')
|
||||
{
|
||||
// 重新更新用户session或cookie缓存
|
||||
self::UserLoginRecord($user_login_info['id']);
|
||||
// 重新存储用户缓存
|
||||
if(!empty($user_login_info['token']))
|
||||
{
|
||||
MyCache(SystemService::CacheKey('shopxo.cache_user_info').$user_login_info['token'], $user_login_info);
|
||||
}
|
||||
}
|
||||
return $user_login_info;
|
||||
}
|
||||
|
||||
|
|
@ -1495,7 +1483,7 @@ class UserService
|
|||
// 成功返回
|
||||
if(APPLICATION == 'app')
|
||||
{
|
||||
$result = self::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$user_ret['data']['user_id']]);
|
||||
$result = self::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$user_ret['data']['user_id']]);
|
||||
} else {
|
||||
$result = $user_ret['data'];
|
||||
}
|
||||
|
|
@ -2223,7 +2211,7 @@ class UserService
|
|||
];
|
||||
if(Db::name('User')->where(['id'=>$user['id']])->update($upd_data))
|
||||
{
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$user['id']]));
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$user['id']]));
|
||||
}
|
||||
} else {
|
||||
if($user['id'] != $temp['id'])
|
||||
|
|
@ -2283,7 +2271,7 @@ class UserService
|
|||
}
|
||||
}
|
||||
}
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$unionid_user_base['id']]));
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$unionid_user_base['id']]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2315,7 +2303,7 @@ class UserService
|
|||
}
|
||||
if(self::UserPlatformInsert($user_platform_insert, $params))
|
||||
{
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$user['id']]));
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$user['id']]));
|
||||
}
|
||||
} else {
|
||||
$is_insert_user = true;
|
||||
|
|
@ -2340,7 +2328,7 @@ class UserService
|
|||
{
|
||||
return DataReturn(MyLang('common_service.user.user_not_audit_tips'), -110);
|
||||
}
|
||||
return DataReturn(MyLang('auth_success'), 0, self::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$ret['data']['user_id']]));
|
||||
return DataReturn(MyLang('auth_success'), 0, self::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$ret['data']['user_id']]));
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
|
@ -2922,7 +2910,7 @@ class UserService
|
|||
{
|
||||
// 清除验证码
|
||||
$obj->Remove();
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'user_id', 'where_value'=>$user_id]));
|
||||
return DataReturn(MyLang('bind_success'), 0, self::AppUserInfoHandle(['where_field'=>'id', 'where_value'=>$user_id]));
|
||||
}
|
||||
return DataReturn(MyLang('bind_fail'), -100);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue