20 lines
467 B
PHP
20 lines
467 B
PHP
<?php
|
|
// 应用公共文件
|
|
use api\Httpcurl;
|
|
use think\facade\Db;
|
|
|
|
const DOMAIN = 'www.evus.cn';
|
|
/**
|
|
* 发给py进行提交注册
|
|
*/
|
|
function evusSubmit($order_sn)
|
|
{
|
|
$data = DB::name('msg')->where(['order_sn' => $order_sn])->where('order_status','in',[1, 3])->find();
|
|
if (empty($data)) {
|
|
return;
|
|
}
|
|
$url = 'https://manage.evus.cn/home.php?s=msg/send/id/' . $data['id'] . '.html';
|
|
|
|
Httpcurl::request($url, 'get', '', [], 3);
|
|
return;
|
|
} |