|
|
|
@ -77,7 +77,7 @@ class BadgeService implements BadgeServiceInterface |
|
|
|
public function allByUserOrder($userId) |
|
|
|
{ |
|
|
|
$redis = ApplicationContext::getContainer()->get(Redis::class); |
|
|
|
$redisHName = 'badge_user'; |
|
|
|
$redisHName = 'badge:user'; |
|
|
|
$redisHKey = 'user_id_'.$userId; |
|
|
|
|
|
|
|
// 取出当前用户的key的badge(key=>value json串)
|
|
|
|
@ -115,7 +115,7 @@ class BadgeService implements BadgeServiceInterface |
|
|
|
public function allByStoreOrder($storeId) |
|
|
|
{ |
|
|
|
$redis = ApplicationContext::getContainer()->get(Redis::class); |
|
|
|
$redisHName = 'badge_store'; |
|
|
|
$redisHName = 'badge:store'; |
|
|
|
$redisHKey = 'store_id_'.$storeId; |
|
|
|
|
|
|
|
// 取出当前用户的key的badge(key=>value json串)
|
|
|
|
@ -153,7 +153,7 @@ class BadgeService implements BadgeServiceInterface |
|
|
|
public function sAddUserOrder($badge, $userId, $globalOrderId) |
|
|
|
{ |
|
|
|
$redis = ApplicationContext::getContainer()->get(Redis::class); |
|
|
|
$redisHName = 'badge_user'; |
|
|
|
$redisHName = 'badge:user'; |
|
|
|
$redisHKey = 'user_id_'.$userId; |
|
|
|
|
|
|
|
// 取出当前用户的key的badge(key=>value json串)
|
|
|
|
@ -185,7 +185,7 @@ class BadgeService implements BadgeServiceInterface |
|
|
|
public function sAddStoreOrder($badge, $storeId, $globalOrderId) |
|
|
|
{ |
|
|
|
$redis = ApplicationContext::getContainer()->get(Redis::class); |
|
|
|
$redisHName = 'badge_store'; |
|
|
|
$redisHName = 'badge:store'; |
|
|
|
$redisHKey = 'store_id_'.$storeId; |
|
|
|
|
|
|
|
// 取出当前用户的key的badge(key=>value json串)
|
|
|
|
@ -217,7 +217,7 @@ class BadgeService implements BadgeServiceInterface |
|
|
|
public function clearUserOrder($userId, $badge = 'all', $globalOrderId = '') |
|
|
|
{ |
|
|
|
$redis = ApplicationContext::getContainer()->get(Redis::class); |
|
|
|
$redisHName = 'badge_user'; |
|
|
|
$redisHName = 'badge:user'; |
|
|
|
$redisHKey = 'user_id_'.$userId; |
|
|
|
|
|
|
|
// 取出当前用户的key的badge(key=>value json串)
|
|
|
|
@ -253,7 +253,7 @@ class BadgeService implements BadgeServiceInterface |
|
|
|
public function clearStoreOrder($storeId, $badge = 'all', $globalOrderId = '') |
|
|
|
{ |
|
|
|
$redis = ApplicationContext::getContainer()->get(Redis::class); |
|
|
|
$redisHName = 'badge_store'; |
|
|
|
$redisHName = 'badge:store'; |
|
|
|
$redisHKey = 'store_id_'.$storeId; |
|
|
|
|
|
|
|
// 取出当前用户的key的badge(key=>value json串)
|
|
|
|
|