no message
This commit is contained in:
56
user/mods/ai_chat/Main.php
Normal file
56
user/mods/ai_chat/Main.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
|
||||
function open_products($data,$post) {
|
||||
|
||||
$user = $post["user"];
|
||||
$pass = $post["pass"];
|
||||
$token = $data["token"];
|
||||
|
||||
|
||||
if (!$user or !$pass or !$token) {
|
||||
|
||||
$data['msg'] = $ed;
|
||||
$data['code'] = 100;
|
||||
$data['status'] = '待开通';
|
||||
}
|
||||
|
||||
$ed = @file_get_contents("http://47.96.225.190:9160/USER/api.php?api=add&key=&user=".$user."&bi=".$token."&pass=".$pass);
|
||||
if ($ed == "成功") {
|
||||
$data['msg'] = $ed;
|
||||
$data['code'] = 200;
|
||||
$data['status'] = '已激活';
|
||||
}else{
|
||||
|
||||
$data['msg'] = $ed;
|
||||
$data['code'] = 100;
|
||||
$data['status'] = '待开通';
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
function show_product($data) {
|
||||
|
||||
return "Token已到账~~~";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function stop_product($data) {
|
||||
|
||||
$data['code'] = 200;
|
||||
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function ready_products($data) {
|
||||
$templatePath = './mods/ai_chat/ready.html'; // 模板路径
|
||||
$variables = $data;
|
||||
$variables["id"] = $_GET["id"];
|
||||
return h_t($templatePath, $variables);
|
||||
}
|
||||
30
user/mods/ai_chat/ready.html
Normal file
30
user/mods/ai_chat/ready.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<form action="./open_products.fx" method="POST">
|
||||
<input name="id" value="{{$id}}" style="position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none;"
|
||||
readonly/>
|
||||
<div class="mdui-card-content">
|
||||
<div class="rk-in-gray-bg mdui-textfield mdui-textfield-floating-label">
|
||||
<div class="rk-in-la">
|
||||
<label style="" class="mdui-textfield-label">氢云AI 账号</label>
|
||||
</div>
|
||||
|
||||
<input class="rk-in-la mdui-textfield-input" name="user" type="number" />
|
||||
</div>
|
||||
<br>
|
||||
<div class="rk-in-gray-bg mdui-textfield mdui-textfield-floating-label">
|
||||
<div class="rk-in-la">
|
||||
<label style="" class="mdui-textfield-label">氢云AI 密码</label>
|
||||
</div>
|
||||
<input class="rk-in-la mdui-textfield-input" name="pass" type="password" />
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div id="rk-form-load" class="rk-a-hidden mdui-spinner mdui-spinner-colorful"></div>
|
||||
<button type="submit" style="margin-bottom: 15px;" class="mdui-float-right mdui-hoverable mdui-text-color-blue-a200 mdui-btn mdui-color-theme-accent mdui-ripple">
|
||||
<i class="mdui-icon mdui-icon-left material-icons">assistant_photo</i> 兑换
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user