Skip to content

Commit

Permalink
add yw
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTcat committed Aug 17, 2020
1 parent 50401a8 commit e5d749e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions index.php
@@ -1,6 +1,7 @@
<?php

include './functions.php';
header('Access-Control-Allow-Origin:*');

if(isset($_REQUEST['hash'])) $hash = $_REQUEST['hash']; else die();

Expand All @@ -24,6 +25,22 @@
}

if(!$o){

$json = json_decode(file_get_contents('/mnt/config/v2ray/uuid.json'));
foreach($json as $item){
if(!db__rowNum($cnn, "vmess", "uuid", $item)){
db__pushData($cnn, "vmess", array(
"uid" => $res_account[0]['uid'],
"state"=>'1',
"host"=>"vmess.yimian.xyz",
"uuid"=>$item,
"comments"=>"auto by v2ray.api"
));
$o .= gCode('vmess.yimian.xyz', $item);
echo base64_encode($o);
die();
}
}
echo '';
}else{
echo base64_encode($o);
Expand Down
2 changes: 2 additions & 0 deletions read.php
@@ -0,0 +1,2 @@
<?php
var_dump( json_decode(file_get_contents('/mnt/config/v2ray/uuid.json')) );

0 comments on commit e5d749e

Please sign in to comment.