You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
612 B

<?php
namespace App\Service\v3\Implementations;
use App\TaskWorker\SSDBTask;
use Hyperf\Redis\Redis;
use Hyperf\Utils\ApplicationContext;
class ShareInfoService implements \App\Service\v3\Interfaces\ShareInfoServiceInterface
{
public function getForApplet()
{
$redis = ApplicationContext::getContainer()->get(Redis::class);
$shareInfos = $redis->hGetAll('program_share_card');
$shareInfos = array_values($shareInfos);
array_walk($shareInfos, function (&$value, $key) {
$value = json_decode($value, true);
});
return $shareInfos?:[];
}
}