【调度系统】广东民航医疗快线调度系统源代码
wanglizhong
2025-06-24 e40f86fb35ffe1535bb66181fb0ec0c6b10e3fa8
API/v1/SendSms.php
@@ -99,7 +99,17 @@
    }
}
function sendPayUrl($phone,$name,$payurl){
    $payurl="wx.966120.com.cn/?n=".$payurl;
     $content='【广东民航医疗】移动支付指引:'.$name.'您好!请点击以下链接进入信息确认和支付界面。核对您的出车信息无误后,可选择支付宝或者微信支付:' .$payurl;
    //  echo $content;
    require './sms/SmsSend.php';
    $sms = new SmsSend('gdmhhy', 'lLsZyz3YVYKQ');
    $result = $sms->sendSmsOne([['phone' => $phone, 'content' => $content]], '');
    // print_r($result);
    return $result;
}
// 调用示例:
set_time_limit(0);
header('Content-Type: text/plain; charset=utf-8');
@@ -115,6 +125,10 @@
   $name=empty($_REQUEST['name'])!=false ? "" : addslashes($_REQUEST['name']);      //内容--姓名
   $payurl=empty($_REQUEST['payurl'])!=false ? "" : addslashes($_REQUEST['payurl']);      //内容--短链接验证码
   $codejson=json_encode(array("name"=>$name,"payurl"=>$payurl), JSON_UNESCAPED_UNICODE);
    $result=sendPayUrl($Phone,$name,$payurl);
    echo json_encode($result);
    return;
}elseif ($lateCode=="SMS_172011256" or $lateCode=="SMS_219742082") {
   //出车短信
   $UserName=empty($_REQUEST['UserName'])!=false ? "" : addslashes($_REQUEST['UserName']);      //内容--负责人