STEAM 如何实现内购? PHP C#都行。

2021-02-21 20:34发布

求steam实现内购的全部代码,或者测试案例。自己研究了半天ISteamMicroTxn 接口,结果每次都报错:Access is denied. Retrying will not help. Please verify your <pre>key=</pre> parameter.。求大佬指点迷津。w(゚Д゚)w

7条回答
落阳Java_詹哥
1楼-- · 2021-02-21 21:08

 

小白正在努力
2楼-- · 2021-02-21 21:12
场景定制
3楼-- · 2021-02-21 21:15

stand !yuange sl>:yuaneg?yuanrg spendstenn "yes"

Merticiyuan197 unity Aaceuiyuwniyqitrn yous

丁码农
5楼-- · 2021-02-21 21:15

获取 

<?php
function resolve_id($id, $token = STEAM_TOKEN)
{
  if (!preg_match('/^7656119[0-9]{10}$/i', $id))
  {
 
    $xml = @simplexml_load_file(sprintf("http://api.steampowered.com/ISteamUser/ResolveVanityURL/v0001/?key=%s&format=xml&vanityurl=%s", $token, $id));
    return $xml -> success == "1" ? $xml -> steamid : null;
  }
  else
  {
    return $id;
  }
}
?>

 

获取SteamID