$gameId, 'game_name' => $appid, 'bet_amount' => $betAmount, 'win_amount' => $winAmount, ]; $objEosAES = new EosAES($GLOBALS['codeGtAdmin']); $objHttp = new dwHttp(); $seed = "{$appid}|{$gameId}"; $data['sign'] = $objEosAES->encode($seed); $resp = $objHttp->post2($api, $data); return json_decode($resp, true); } }