使用说明

使用说明:

普通接口API域名地址: 

http://api.dg99web.com


拉单接口API域名地址:

http://report.dg0.co

class DgZrCreateTest extends TestCase
{
private static $merchantCode = "DGTE0105ND";
private static $md5Key = "16649c33e87e4fc1841eb2830fd518bb";
private static $host = "http://api.dg99web.com";
public function testCreateSuccess()
{
//准备数据
$gameService = new GameService();
$commonReq = new CreateReq();
$commonReq->gameTypeEnum = GameTypeEnum::DGZR;
$commonReq->host = DgZrCreateTest::$host;
$commonReq->md5Key = DgZrCreateTest::$md5Key;
$commonReq->versionEnum = VersionEnum::V1;
$commonReq->merchantCode = DgZrCreateTest::$merchantCode;
$commonReq->loginName = "jinx123456715";
$commonReq->nickName = "asjkdla";
$commonReq->password = "123456";
$commonReq->loginIp = "127.0.0.1";
$commonReq->deviceType = DeviceTypeEnum::PC;
$commonReq->timestamp = DateUtils::GetMillTime();
$commonReq->limitType = "A";
$commonResp = $gameService->create($commonReq);
$this->assertTrue(CodeMsgEnum::SUCCESS == $commonResp->code);
}
}