Compare commits
10 Commits
e012870b62
...
4db772e33b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4db772e33b | ||
|
|
1d562202d6 | ||
|
|
0b3209843b | ||
|
|
20abe2f569 | ||
|
|
55156b50a2 | ||
|
|
c8bfcceeba | ||
|
|
e1959e1225 | ||
|
|
4ad116651b | ||
|
|
5fa8327363 | ||
|
|
c05fd8568b |
@@ -11,6 +11,9 @@ use extend\redis\Redisop;
|
||||
use app\tencent\model\Agreement as AgreementModel;
|
||||
use Qiniu\Auth;
|
||||
use Qiniu\Storage\UploadManager;
|
||||
use Jdcloud\Credentials\Credentials;
|
||||
use Jdcloud\Result;
|
||||
use Jdcloud\Cloudauth\CloudauthClient;
|
||||
|
||||
class Index
|
||||
{
|
||||
@@ -237,6 +240,25 @@ class Index
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function getisverify()
|
||||
{
|
||||
$user_phone = $_GET['user'];
|
||||
$user = new UserModel;
|
||||
$user_one_info = $user->getOne(['LoginCode'=>$user_phone]);
|
||||
if($user_one_info['is_verify'] == 1){
|
||||
$data = [
|
||||
'Code'=>10000
|
||||
];
|
||||
echo json_encode($data);
|
||||
die;
|
||||
} else {
|
||||
$data = [
|
||||
'Code'=>-10000
|
||||
];
|
||||
}
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
public function aliGetResult()
|
||||
{
|
||||
$user_phone = $_GET['user'];
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace app\api\controller;
|
||||
|
||||
use app\api\model\BrowserVerify;
|
||||
use app\api\model\User;
|
||||
|
||||
class Verify
|
||||
{
|
||||
@@ -21,4 +22,56 @@ class Verify
|
||||
result([], 'false', 30000);
|
||||
}
|
||||
}
|
||||
|
||||
//验证用户是否实名
|
||||
public function userverify() {
|
||||
$post = $_POST;
|
||||
|
||||
if (empty($post)) {
|
||||
$post = json_decode(file_get_contents("php://input"), true);
|
||||
}
|
||||
|
||||
$username = $post['phone'];
|
||||
|
||||
if (empty($username)) {
|
||||
$return_data = [
|
||||
'code' => -1,
|
||||
'msg' => '身份证号或手机号不能为空',
|
||||
];
|
||||
echo json_encode($return_data);
|
||||
die;
|
||||
}
|
||||
|
||||
$user_model = new User;
|
||||
|
||||
$userinfo = $user_model->getOne(['LoginCode'=>$username], 'is_verify');
|
||||
|
||||
if ($userinfo['is_verify']) {
|
||||
$return_data = [
|
||||
'code' => 1,
|
||||
'msg' => '实名认证成功',
|
||||
];
|
||||
echo json_encode($return_data);
|
||||
die;
|
||||
} else {
|
||||
$return_data = [
|
||||
'code' => -1,
|
||||
'msg' => '实名认证失败',
|
||||
];
|
||||
echo json_encode($return_data);
|
||||
die;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function openlimit() {
|
||||
|
||||
$data = $_POST;
|
||||
if (empty($data)) {
|
||||
$data = json_decode(file_get_contents("php://input"), true);
|
||||
}
|
||||
$url = "http://124.236.113.166:18702/api/agent/openIM/apikey/80cf4f64e990b78a9fc5eb/account/".$data['account'];
|
||||
linkcurl($url,'GET',[],[],0);
|
||||
echo json_encode(['code'=>1,]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,12 +142,14 @@ class SellInfo extends Controller
|
||||
// $data['sell_percent'] = "我的营业额($user_cost)/总营业额($all_cost)=" . $sell_percent . '%';
|
||||
$data['other_order_active'] = "其他IP产品:" . $sell_money_list['other_order_1'];
|
||||
$data['mogu_order_active'] = "蘑菇IP产品:" . $sell_money_list['mogu_order_1'];
|
||||
$data['jihu_order_active'] = "极狐IP产品:" . $sell_money_list['jihu_order_1'];
|
||||
$data['recharge_active'] = "IP充值:" . $sell_money_list['recharge_1'];
|
||||
$data['http_active'] = "HTTP充值:" . $sell_money_list['http_1'];
|
||||
$data['ros_active'] = "ROS订单:" . $sell_money_list['ros_1'];
|
||||
$data['jinqiao_active'] = "金桥订单:" . $sell_money_list['jinqiao_1'];
|
||||
$data['other_order_not_active'] = "其他IP产品:" . $sell_money_list['other_order_0'];
|
||||
$data['mogu_order_not_active'] = "蘑菇IP产品:" . $sell_money_list['mogu_order_0'];
|
||||
$data['jihu_order_not_active'] = "极狐IP产品:" . $sell_money_list['jihu_order_0'];
|
||||
$data['recharge_not_active'] = "IP充值:" . $sell_money_list['recharge_0'];
|
||||
$data['http_not_active'] = "HTTP充值:" . $sell_money_list['http_0'];
|
||||
$data['ros_not_active'] = "ROS订单:" . $sell_money_list['ros_0'];
|
||||
@@ -291,12 +293,14 @@ class SellInfo extends Controller
|
||||
$cost_not_mogu_data = round($user_cost-$cost_mogu_data-$refund,2);
|
||||
$data['other_order_active'] = "其他IP产品:" . $sell_money_list['other_order_1'];
|
||||
$data['mogu_order_active'] = "蘑菇IP产品:" . $sell_money_list['mogu_order_1'];
|
||||
$data['jihu_order_active'] = "极狐IP产品:" . $sell_money_list['jihu_order_1'];
|
||||
$data['recharge_active'] = "IP充值:" . $sell_money_list['recharge_1'];
|
||||
$data['http_active'] = "HTTP充值:" . $sell_money_list['http_1'];
|
||||
$data['ros_active'] = "ROS订单:" . $sell_money_list['ros_1'];
|
||||
$data['jinqiao_active'] = "金桥订单:" . $sell_money_list['jinqiao_1'];
|
||||
$data['other_order_not_active'] = "其他IP产品:" . $sell_money_list['other_order_0'];
|
||||
$data['mogu_order_not_active'] = "蘑菇IP产品:" . $sell_money_list['mogu_order_0'];
|
||||
$data['jihu_order_not_active'] = "极狐IP产品:" . $sell_money_list['jihu_order_0'];
|
||||
$data['recharge_not_active'] = "IP充值:" . $sell_money_list['recharge_0'];
|
||||
$data['http_not_active'] = "HTTP充值:" . $sell_money_list['http_0'];
|
||||
$data['ros_not_active'] = "ROS订单:" . $sell_money_list['ros_0'];
|
||||
|
||||
@@ -286,6 +286,10 @@ class UserFollow extends Controller
|
||||
case 'mogu_order':
|
||||
$info['product_type'] = '蘑菇IP订单';
|
||||
break;
|
||||
|
||||
case 'jihu_order':
|
||||
$info['product_type'] = '极狐IP订单';
|
||||
break;
|
||||
case 'recharge':
|
||||
$info['product_type'] = 'IP充值';
|
||||
break;
|
||||
@@ -358,6 +362,8 @@ class UserFollow extends Controller
|
||||
case 'mogu_order':
|
||||
$info['product_type'] = '蘑菇IP订单';
|
||||
break;
|
||||
case 'jihu_order':
|
||||
$info['product_type'] = '极狐IP订单';
|
||||
case 'recharge':
|
||||
$info['product_type'] = 'IP充值';
|
||||
break;
|
||||
@@ -455,7 +461,7 @@ class UserFollow extends Controller
|
||||
'sell_money' => 0,
|
||||
'sell_type' => 0,
|
||||
];
|
||||
if ($data['product_type'] == 'other_order' || $data['product_type'] == 'mogu_order') {
|
||||
if ($data['product_type'] == 'other_order' || $data['product_type'] == 'mogu_order' || $data['product_type'] == 'jihu_order') {
|
||||
$sell_where = [
|
||||
'UserId' => $data['user_id'],
|
||||
'PaymentAmount' => $data['sell_money'],
|
||||
|
||||
23
app/product/controller/OpenAccountLimit.php
Normal file
23
app/product/controller/OpenAccountLimit.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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'];
|
||||
}
|
||||
linkcurl($url,'GET',[],[],0);
|
||||
echo json_encode(['Code'=>30000,]);
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,21 @@ class Jinyoujingtai{
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, 5); // 设置CURL超时时间
|
||||
$response = curl_exec($ch);
|
||||
// 检查是否因为超时而返回FALSE
|
||||
if ($response === false) {
|
||||
$error = curl_error($ch);
|
||||
if (strpos($error, 'Operation timed out') !== false || curl_errno($ch) === CURLE_OPERATION_TIMEDOUT) {
|
||||
// 这里处理超时异常
|
||||
echo json_encode(["code"=> 200,"data"=>[]]);
|
||||
} else {
|
||||
// 这里处理其他CURL错误
|
||||
echo json_encode(["code"=> 200,"data"=>[]]);
|
||||
}
|
||||
die;
|
||||
}
|
||||
|
||||
curl_close($ch);
|
||||
|
||||
return $response;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
function auto_format_list(){
|
||||
$product_list = [0, 1, 2, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19,22,23,25,26,27,28];
|
||||
$product_list = [0, 1, 2, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19,22,23,25,26,27,28,29];
|
||||
foreach ($product_list as $product) {
|
||||
switch ($product) {
|
||||
case 0:
|
||||
@@ -69,6 +69,9 @@ function auto_format_list(){
|
||||
case 28:
|
||||
format_shuidi_product(__DIR__ . '/data/shuidi.csv','sdip.cc');
|
||||
break;
|
||||
case 29:
|
||||
format_product(__DIR__ . '/data/jihu.csv','jhip.net');
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,6 +128,9 @@ function format_all_product($file_path)
|
||||
case '蘑菇':
|
||||
$dns = 'mgip.net';
|
||||
break;
|
||||
case '极狐':
|
||||
$dns = 'jhip.net';
|
||||
break;
|
||||
case '火狐静态':
|
||||
$dns = 'hhip.vip';
|
||||
break;
|
||||
|
||||
@@ -55,6 +55,9 @@ switch ($id) {
|
||||
case 18:
|
||||
get_product(__DIR__ . '/data/download/mogu.csv');
|
||||
break;
|
||||
case 29:
|
||||
get_product(__DIR__ . '/data/download/jihu.csv');
|
||||
break;
|
||||
case 19:
|
||||
get_product(__DIR__ . '/data/download/huohu.csv');
|
||||
break;
|
||||
|
||||
@@ -64,6 +64,17 @@ $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);
|
||||
//-----------------------------------------------------------------------------------------------------
|
||||
|
||||
//极狐
|
||||
$url = "http://124.236.113.166:18702/api/agent/getList2?apikey=80cf4f64e990b78a9fc5eb";
|
||||
$jihu = json_decode(file_get_contents($url), true)['data'];
|
||||
if ($jihu) {
|
||||
$jihu_f = fopen(__DIR__ . '/data/jihu.csv', 'w');
|
||||
jihu_getList($jihu, $jihu_f, $all);
|
||||
fclose($jihu_f);
|
||||
}
|
||||
|
||||
|
||||
$apikey = '80cf4f64e990b78a9fc5eb';
|
||||
$url = "http://rds-api.juip.com/api/index/getList2?apikey=".$apikey;
|
||||
$mogu = json_decode(file_get_contents($url), true)['data'];
|
||||
@@ -74,6 +85,7 @@ if ($mogu) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
//麒麟动态
|
||||
$dnx_has_exit = [];
|
||||
$qilin = new jinyou();
|
||||
@@ -836,6 +848,57 @@ function mogu_getList($data, &$file, &$all )
|
||||
|
||||
}
|
||||
|
||||
//极狐服务器解析规则
|
||||
function jihu_getList($data, &$file, &$all )
|
||||
{
|
||||
$key = '';
|
||||
$list1 = [];
|
||||
// print_r($data);
|
||||
|
||||
$province_record = [];
|
||||
|
||||
foreach ($data as $info) {
|
||||
|
||||
$record = [];
|
||||
|
||||
$record['name'] = '极狐';
|
||||
//如果存在 不为空 则
|
||||
$city_name = explode('-',$info['city']);
|
||||
if(empty($info['city'])) {
|
||||
continue;
|
||||
}
|
||||
//如果存在 不为空 则
|
||||
if (!in_array( $city_name[0], $province_record)) {
|
||||
$record['city'] = $city_name[0];
|
||||
$province_record[] = $city_name[0];
|
||||
$key = $record['city'];
|
||||
$list1[$key][] = $record;
|
||||
}
|
||||
$key = $city_name[0];
|
||||
|
||||
|
||||
$record['city'] = $city_name[1];
|
||||
$record['supply'] = $info['yunying'];
|
||||
|
||||
$record['ip'] = $info['ipCount'];
|
||||
$record['daikuan'] = $info['daikuan'];
|
||||
$record['onlineuser'] = '';
|
||||
$record['maxuser'] = '';
|
||||
$record['online'] = $info['status'];
|
||||
$record['status'] = $info['onlinestatus'];
|
||||
$record['nasname'] = $info['address'];
|
||||
$list1[$key][] = $record;
|
||||
}
|
||||
foreach ($list1 as $val) {
|
||||
foreach ($val as $net_data) {
|
||||
|
||||
fputcsv($file, $net_data);
|
||||
fputcsv($all, $net_data);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//麒麟服务器解析规则
|
||||
function qilin_getList($data, &$file, &$all, $exit )
|
||||
{
|
||||
|
||||
@@ -59,6 +59,9 @@ if($_GET['type'] == 1){
|
||||
case 18:
|
||||
search_product(__DIR__.'/data/download/mogu.csv','mgip.net');
|
||||
break;
|
||||
case 29:
|
||||
search_product(__DIR__.'/data/download/jihu.csv','jhip.net');
|
||||
break;
|
||||
case 19:
|
||||
search_product(__DIR__.'/data/download/huohu.csv','hhip.vip');
|
||||
break;
|
||||
@@ -145,6 +148,9 @@ function search_all_product($file_path,$search){
|
||||
case '蘑菇':
|
||||
$dns = 'mgip.net';
|
||||
break;
|
||||
case '极狐':
|
||||
$dns = 'jhip.net';
|
||||
break;
|
||||
case '火狐静态':
|
||||
$dns = 'hhip.vip';
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user