接触蘑菇极狐im

This commit is contained in:
“wanyongkang”
2024-07-09 15:47:04 +08:00
parent e1959e1225
commit c8bfcceeba
2 changed files with 33 additions and 8 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace app\product\controller;
use fastphp\base\Controller;
class OpenAccountLimit extends Controller
{
public function openTxLimit(){
$data = json_decode(file_get_contents("php://input"),true);
if(!$data){
die;
}
// dump($data);die;
if ($data['productId'] == 18) {
$url = "http://rds-api.juip.com/api/agent/openIM/account/".$data['account'];
} elseif ($data['productId'] == 29) {
$url = "http://124.236.113.166:18702/api/agent/openIM/apikey/80cf4f64e990b78a9fc5eb/account/".$data['account'];
}
echo json_encode(['Code'=>30000,]);
}
}

View File

@@ -64,14 +64,6 @@ $all = fopen(__DIR__ . '/data/all.csv', 'w');
$dnx_exit = fopen(__DIR__ . '/data/dns_diff.csv', 'a');
$dnx_has_exit = get_product(__DIR__ . '/data/dns_diff.csv', 1);
//-----------------------------------------------------------------------------------------------------
$apikey = '80cf4f64e990b78a9fc5eb';
$url = "http://rds-api.juip.com/api/index/getList2?apikey=".$apikey;
$mogu = json_decode(file_get_contents($url), true)['data'];
if ($mogu) {
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
mogu_getList($mogu, $mogu_f, $all);
fclose($mogu_f);
}
//极狐
$url = "http://124.236.113.166:18702/api/agent/getList2?apikey=80cf4f64e990b78a9fc5eb";
@@ -83,6 +75,17 @@ if ($jihu) {
}
$apikey = '80cf4f64e990b78a9fc5eb';
$url = "http://rds-api.juip.com/api/index/getList2?apikey=".$apikey;
$mogu = json_decode(file_get_contents($url), true)['data'];
if ($mogu) {
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
mogu_getList($mogu, $mogu_f, $all);
fclose($mogu_f);
}
//麒麟动态
$dnx_has_exit = [];
$qilin = new jinyou();