{wc:templates "index","header"}

HomeAll products{wc:$categoryx['name']} {wc:$brand['name']}Announce details

(Period {wc:$item['qishu']}){wc:fun:_strcut($item['title'],60)}
{wc:fun:_strcut($item['title2'],60)}

Voucher code

{wc:$item['q_user_code']}

Congratulations{wc:fun:get_user_name($q_user)} obtained this product
User ID:{wc:$item['q_uid']}
In this peroid:{wc:$user_shop_number} times
Open time:{wc:fun:microt($item['q_end_time'])}
Server time:{wc:fun:microt($user_shop_time)}

The total number of product winners in this peroid {wc:$user_shop_number} times   {wc:fun:microt($user_shop_time)}

{wc:fun:yunma($user_shop_codes,"b")}
{wc:$loopqishu}
see more>>

    Calculation formula

      {wc:php:start} $result1 = 0; foreach ($addList as $key => $value) { $tmp = explode('.', $value['time']); $item_time = date("His",$tmp[0]); $item_time .= $tmp[1]; $result1 = bcadd($result1, $item_time); } $result2 = str_split($item['period1']); {wc:php:end}
    • {wc:$item['q_user_code']}Lucky number
    • {wc:$item['q_counttime']}100 time summation

      The last number of the prize is allocated, and the prizes of all the prizes in this site before the allocated time will be announced.Last 100 participation times,And sum.

    • {wc:$item['canyurenshu']}The total number of prizes required
    • {wc:php:start} $shop_fmod = fmod($item['q_counttime'],$item['canyurenshu']); {wc:php:end}
    • {wc:$shop_fmod}Take the remainder

      The remainder refers to the undivisible part of the dividend in integer division
      Such as 7÷3 = 2 ......1,1Is the remainder。

    • 10000001Original number

Latest issue

The latest issue is in progress

First {wc:$itemzx['qishu']} period{wc:$itemzx['title']} Value: R{wc:$itemzx['money']}
  • {wc:$itemzx['canyurenshu']}
  • {wc:$itemzx['shenyurenshu']}
  • Participated
  • Available Plays
Calculation results
Participation records
Show list

(1) Get the last 100 purchase time records of all products on the website before the last purchase time of the product

(2) Each time record is arranged in sequence by hours, minutes, seconds, milliseconds

(3) Divide the sum of these 100 values by the total number of participants of the product and take the remainder. The remainder plus 10000001 is the "lucky cloud purchase code".

(4) The remainder refers to the undivisible part of the dividend in integer division, such as 7 ÷ 3 = 2 ...... 1, 1 is the remainder.

{wc:if !$item['q_content']}

Because the site has not yet reached 100 purchase records. So follow 10000001 + (Announced time to sum results * 100 / number of participants) Remainder of That is "Lucky Cloud Purchase Code".

{wc:if:end}
    time
    Time factor
    product name
    Trophies

    As of the last purchase time of this product【】The last 100 records of panic buying participation

      {wc:php:start} $addList = $this->db->GetList("select * from `@#_member_go_record` where time < '{$item['q_end_time']}' order by id desc limit 100"); {wc:php:end} {wc:loop $addList $record} {wc:php:start} $itemid = $item['id']; $record_time = explode(".",$record['time']); $record['time'] = $record_time[0]; $record['timeadd'] = str_replace(':','',date("H:i:s",$record['time'])); $record['timeadd'] = $record['timeadd'].$record_time[1]; $outs++; {wc:php:end} {wc:if $outs<10}
      • {wc:fun:date("Y-m-d",$record['time'])}
      • {wc:fun:date("H:i:s",$record['time'])}.{wc:$record_time[1]}{wc:$record['timeadd']}
    • {wc:else} {wc:if:end} {wc:loop:end}
    • Expand all 100 data
    • Collapse
    • {wc:if $item['q_content']}
      Calculation results
    • 1、Summation:{wc:$item['q_counttime']} (The sum of the above 100 records)
    • 2、Find the rest:{wc:$item['q_counttime']} (The sum of 100 time records)% {wc:$item['canyurenshu']}(Prizes require visits) ={wc:$shop_fmod}(remainder)

      remainder:In integer division, the dividend is not divided by the divisor. "For example, 27 divided by 6, the quotient is 4, and the remainder is 3.”

    • 3、Results: {wc:$shop_fmod} (remainder) + 10000001 = {wc:php:start} $q_user_code = $shop_fmod + 10000001; $q_user_code_list = str_split($q_user_code); {wc:php:end} {wc:loop $q_user_code_list $codeitem} {wc:$codeitem}{wc:loop:end}
    • Final Results:{wc:$item['q_user_code']}
    • {wc:else}
      Less than 100 calculation results

      Calculation results

      Summation: {wc:$user_shop_time_add}(Announce time to sum the results)
      Remainder: {wc:$user_shop_time_add}(Announced time) * 100 / {wc:$item['canyurenshu']}(This product always needs to participate) = {wc:$user_shop_fmod}(remainder)
      result: {wc:$user_shop_fmod}(remainder) + 1000001 = {wc:$item['q_user_code']}

      Final Results:{wc:$item['q_user_code']}
      {wc:if:end}
{wc:$loopqishu}
{wc:templates "index","footer"}