{wc:templates "index","header"}
首页 > {wc:$category['name']} > {wc:$brand['name']} >揭晓详情

(第{wc:$item['qishu']}期){wc:$item['title']}{wc:$item['title2']}

{wc:if $itemzx}
第{wc:$itemzx['qishu']}期正在进行

  • {wc:$itemzx['canyurenshu']}已参与人次
  • {wc:$itemzx['zongrenshu']}总需人次
  • {wc:$itemzx['shenyurenshu']}剩余人次

查看详情

{wc:if:end}

价值:{wc:$item['money']}

揭晓结果
    {wc:loop $q_user_code_arr $q_code_num}
  • {wc:$q_code_num}
  • {wc:loop:end}

恭喜{wc:fun:get_user_name($q_user)} 获得本期商品

揭晓时间:{wc:fun:microt($item['q_end_time'])}

云购时间:{wc:fun:microt($user_shop_time)}

商品获得者本期总共云购了{wc:$user_shop_number}人次

{wc:fun:microt($user_shop_time)}
{wc:fun:yunma($user_shop_codes,"b")}
展开查看全部
  • 计算结果
1、取该商品最后购买时间前网站所有商品的最后100条购买时间记录
2、每个时间记录按时、分、秒、毫秒依次排列取数值
3、将这100个数值之和除以该商品总参与人次后取余数,余数加上10000001 即为“幸运云购码”。 {wc:if !$item['q_content']}
由于网站还未满100条购买记录。所以按照 10000001 + (揭晓时间求和结果*100/参与人数) 的余数 即为“幸运云购码”。 {wc:if:end}
{wc:if !$item['q_content']}

未满100条计算结果

计算结果

求和: {wc:$user_shop_time_add}(揭晓时间求和结果)
取余: {wc:$user_shop_time_add}(揭晓时间) * 100 / {wc:$item['canyurenshu']}(本商品总需参与人次) = {wc:$user_shop_fmod}(余数)
结果: {wc:$user_shop_fmod}(余数) + 1000001 = {wc:$item['q_user_code']}

最终结果:{wc:$item['q_user_code']}
{wc:else}

截止该商品揭晓购买时间【{wc:fun:microt($item['q_end_time'])}】最后100条全站购买时间记录

{wc:loop $item['q_content'] $record} {wc:php:start} $record_time = explode(".",$record['time']); $record['time'] = $record_time[0]; {wc:php:end} {wc:loop:end}
{wc:php:start} $shop_fmod = fmod($item['q_counttime'],$item['canyurenshu']); {wc:php:end}

100条计算结果

计算结果

求和: {wc:$item['q_counttime']}(上面100条云购记录时间取值相加之和)
取余: {wc:$item['q_counttime']}(100条时间记录之和) % {wc:$item['canyurenshu']}(本商品总需参与人次) = {wc:$shop_fmod}(余数)
结果: {wc:$shop_fmod}(余数) + 10000001 = {wc:$item['q_user_code']}

最终结果:{wc:$item['q_user_code']}
{wc:if:end}
{wc:templates "index","footer"}