http 原后台数据

This commit is contained in:
“wanyongkang”
2024-01-05 16:45:55 +08:00
parent 549b19a663
commit c0ed21421a

View File

@@ -105,4 +105,25 @@ class Admin extends Controller
];
echo json_encode($data);
}
// 获取原后台支付数据
public function get_payments() {
$get_data = json_decode(file_get_contents("php://input"), true);
$request_data = [
"page" => $get_data['PageIndex'], //必填,当前页数
"limit" => 50 //必填每页显示条数建议10~20不可超过100
];
$request_data = formatHttpRequert($request_data);
$url = 'https://merchant.sgxz.cn/plan/long/assignable/line/count';
$data = (linkcurl($url,'GET',$request_data,[],0));
$admin_url = "https://merchant.sgxz.cn/admin/get/coin";
$data['money'] = json_decode((linkcurl($admin_url,'GET',[],[],0)))->d->coin;
echo json_encode($data);
}
}