You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* 定时自动完成
|
|
|
|
*/
|
|
|
|
namespace Admin\Controller;
|
|
|
|
use Admin\Model\SpendModel;
|
|
|
|
use Think\Think;
|
|
|
|
use Base\Tool\Printer;
|
|
|
|
use Base\Tool\TaskClient;
|
|
|
|
use Base\Service\TestingResourceService;
|
|
|
|
use GuzzleHttp\Client;
|
|
|
|
use think\Db;
|
|
|
|
use Base\Tool\GameCatClient;
|
|
|
|
|
|
|
|
class GameApiController extends Think {
|
|
|
|
|
|
|
|
protected function _initialize()
|
|
|
|
{
|
|
|
|
C(api('Config/lists'));
|
|
|
|
}
|
|
|
|
|
|
|
|
public function verify()
|
|
|
|
{
|
|
|
|
$batch = M('testing_resource_batch', 'tab_')->where(['id' => 3])->find();
|
|
|
|
$service = new TestingResourceService();
|
|
|
|
// $service->verify($batch);
|
|
|
|
$service->provide($batch);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function provice() {
|
|
|
|
$role = [
|
|
|
|
'role_id' => '6810778',
|
|
|
|
'user_account' => 'liaojl1130',
|
|
|
|
'sdk_version' => 1,
|
|
|
|
];
|
|
|
|
$order = [
|
|
|
|
'ref_amount' => 100,
|
|
|
|
'ref_id' => '10',
|
|
|
|
'remark' => 'ELF测试资源发放1',
|
|
|
|
'order_no' => date('YmdHis') . rand(1000, 9999) . '_1',
|
|
|
|
];
|
|
|
|
$service = new TestingResourceService();
|
|
|
|
$result = $service->provideFromGameCat($order, $role);
|
|
|
|
var_dump($result);
|
|
|
|
}
|
|
|
|
}
|