获取cookie

This commit is contained in:
Lenovo 2024-07-03 13:29:27 +08:00
parent 01de361e5c
commit c8b469da38
2 changed files with 15 additions and 5 deletions

View File

@ -57,6 +57,7 @@ public class MeituanController {
storeInfo.setStoreName(cookie.getWmPoiName());
storeInfo.setStoreCookie(cookie.getCookie());
storeInfo.setPlatformType(String.valueOf(cookie.getBingType()));
storeInfo.setStoreCode(valueFromCookie("wmPoiId",cookie.getCookie()));
storeInfo.setBindTime(new Date());
return R.ok(busStoreInfoService.insertBusStoreInfo(storeInfo));
}

View File

@ -63,6 +63,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="platformType != null">platform_type,</if>
<if test="storeCode != null">store_code,</if>
<if test="storeName != null">store_name,</if>
<if test="storeAccount != null">store_account,</if>
<if test="storePassword != null">store_password,</if>
<if test="storeCookie != null">store_cookie,</if>
<if test="storeBelong != null">store_belong,</if>
<if test="grantStatus != null">grant_status,</if>
<if test="returnVisitStatus != null">return_visit_status,</if>
@ -83,6 +86,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="platformType != null">#{platformType},</if>
<if test="storeCode != null">#{storeCode},</if>
<if test="storeName != null">#{storeName},</if>
<if test="storeAccount != null">#{storeAccount},</if>
<if test="storePassword != null">#{storePassword},</if>
<if test="storeCookie != null">#{storeCookie},</if>
<if test="storeBelong != null">#{storeBelong},</if>
<if test="grantStatus != null">#{grantStatus},</if>
<if test="returnVisitStatus != null">#{returnVisitStatus},</if>
@ -106,6 +112,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="platformType != null">platform_type = #{platformType},</if>
<if test="storeCode != null">store_code = #{storeCode},</if>
<if test="storeName != null">store_name = #{storeName},</if>
<if test="storeAccount != null">store_account = #{storeAccount},</if>
<if test="storePassword != null">store_password = #{storePassword},</if>
<if test="storeCookie != null">store_cookie = #{storeCookie},</if>
<if test="storeBelong != null">store_belong = #{storeBelong},</if>
<if test="grantStatus != null">grant_status = #{grantStatus},</if>
<if test="returnVisitStatus != null">return_visit_status = #{returnVisitStatus},</if>