123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
- /**
- * Created by: PhpStorm
- * User: lytian
- * Date: 2020/3/16
- * Time: 14:21
- */
- namespace app\main\constants;
- use app\main\service\ToutiaoNotifyService;
- class UcCacheConstants
- {
- /**
- * 支付缓存
- * @param $user_id
- * @return string
- */
- public static function getGuideWxPay($user_id)
- {
- return 'UCGWSPAY:' . $user_id;
- }
- /**
- * 头条引导微信关注
- * @param $ip
- * @param $ua
- * @return string
- */
- public static function getGuideWxSubscribe($ip, $ua)
- {
- $ua = ToutiaoNotifyService::instance()->getUaInfo($ua)->data;
- return 'UCGWS:' . $ip . ':' . $ua;
- }
- /**
- * 头条落地页渠道配置信息
- * @param $channel_id
- * @return string
- */
- public static function getGuideWxSetting($channel_id)
- {
- return 'UCGWSS:' . $channel_id;
- }
- /**
- * 支付次数累计
- * @param $id
- * @return string
- */
- public static function getGuideWxPayCount($id)
- {
- return 'UCGWSPC:' . $id;
- }
- /**
- * 支付次数累计
- * @param $id
- * @return string
- */
- public static function getGuideWxPayMoney($id)
- {
- return 'UCGWSPM:' . $id;
- }
- /**
- * 新增获客
- * @param $id
- * @return string
- */
- public static function getGuideWxNewCount($id)
- {
- return 'UCGWSNC:' . $id;
- }
- /**
- * 支付次数累计
- * @param $id
- * @return string
- */
- public static function getGuideWxDayPayCount($id)
- {
- return 'UCGWSPC:' .date('d'). $id;
- }
- /**
- * 支付次数累计
- * @param $id
- * @return string
- */
- public static function getGuideWxDayPayMoney($id)
- {
- return 'UCGWSPM:' .date('d'). $id;
- }
- /**
- * 新增当日获客
- * @param $id
- * @return string
- */
- public static function getGuideWxDayNewCount($id)
- {
- return 'UCGWSNC:' .date('d'). $id;
- }
- }
|