Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: user6d450
Added: May 16, 2019 12:24 PM
Modified: May 17, 2019 5:50 AM
Views: 8
Tags: no tags
  1.       $playerIds = callsql("SELECT player_user_id FROM player_user order by player_user_id desc limit 50 ",'rows');
  2.      
  3.       //$wagerids=array("GC0081930108p");
  4.       $gamenames=array("ag_26","ag_12");
  5.       $channels=array("ag_26","ag_12");
  6.       $betamounts=array("600","800","700","2000");
  7.       $payoffs=array("1950","2000","700","3000");
  8.       $dates=array("2019-04-01 02:00:00","2019-04-02 02:00:00","2019-04-03 07:00:00","2019-04-04 06:00:00","2019-04-15 02:00:00","2019-04-16 02:00:00","2019-04-17 09:00:00","2019-04-21 11:00:00","2019-04-11 02:00:00","2019-04-16 02:00:00","2019-04-20 02:00:00","2019-04-21 02:00:00","2019-04-01 22:00:00","2019-04-23 02:00:00","2019-04-25 02:00:00","2019-04-24 02:00:00"
  9.           ,"2019-04-26 02:00:00","2019-04-27 02:00:00","2019-04-28 02:00:00","2019-04-29 02:00:00","2019-04-30 04:00:00");
  10.  
  11. $roundids=array("ivan001_RT","ivan002_RT");
  12. $sequences=array("ivan001_RT","ivan002_RT");
  13.  
  14.  
  15.    for($i=1;$i<2;$i++)
  16.    {
  17.        $rand=random_strings(8);;
  18. $data['response']['data']['key'.$i]['UserName']=$playerIds[array_rand($playerIds)]['player_user_id'];
  19. $data['response']['data']['key'.$i]['WagersID']='GC00'.$rand;
  20. $data['response']['data']['key'.$i]['GAMENAME']=$gamenames[array_rand($gamenames)];
  21. $data['response']['data']['key'.$i]['betIp']='';
  22. $data['response']['data']['key'.$i]['WagersDate']=$dates[array_rand($dates)];
  23. $data['response']['data']['key'.$i]['BetAmount']=$betamounts[array_rand($betamounts)];
  24. $data['response']['data']['key'.$i]['Payoff']=$payoffs[array_rand($payoffs)];
  25. $data['response']['data']['key'.$i]['Currency']='CNY';
  26. $data['response']['data']['key'.$i]['jackpotAmount']='';
  27. $data['response']['data']['key'.$i]['luckyDrawId']='';
  28. $data['response']['data']['key'.$i]['roundId']=$roundids[array_rand($roundids)];
  29. $data['response']['data']['key'.$i]['SESSIONID']=$roundids[array_rand($roundids)];
  30. $data['response']['data']['key'.$i]['GAMETYPE']=$gamenames[array_rand($gamenames)];
  31. $data['response']['data']['key'.$i]['BALANCE']='';
  32. $data['response']['data']['key'.$i]['jpWin']='';
  33.    }
  34. $datas = $data['response']['data'];