extend/alidayu/SendSms.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
namespace alidayu;
include "TopSdk.php"; //入口文件
use think\Db;
use Autoloader;
use TopClient;
use AlibabaAliqinFcSmsNumSendRequest;
class SendSms{
//验证码
public function send_sms($tel_number){
//echo "string"; $tel,$param,$tpl_code,$sign
// $c=new TopClient;
// $c->appkey="23836248";
// $c->secretkey="4812f059580e03bbfcd4c17dd55d099d";
// //$c->format="xml";
// $reg=new AlibabaAliqinFcSmsNumSendRequest;
// //$reg->setExtend("123456");
// $reg->setSmsType("normal");
// $reg->setSmsFreeSignName($sign);
// $reg->setSmsParam($param);
// $reg->setRecNum($tel);
// $reg->setSmsTemplateCode($tpl_code);
// $result=$c->execute($reg);
// return $result;
if(cache('tel_config')){
// echo "cache";
$tel_config=cache('tel_config');
}else{
$tel_config=Db('system_config_space')->where('config_type', "tel")->order('config_order', 'asc')->select();
cache('tel_config', $tel_config, 3600);
// echo "mysql";
}
$rand_num=rand(100000,999999);
session('rand_num', $rand_num, 'index');
session('tel_number', $tel_number, 'index');
// cache('rand_num', $rand_num, 3600);
// cache('tel_number', $tel_number, 3600);
// $rand_num=cache('rand_num');
//
// dump($rand_num);die;
$c = new TopClient;
//$c->format="xml";
$c ->appkey = $tel_config[0]["config_value"] ;
$c ->secretKey = $tel_config[1]["config_value"] ;
$req = new AlibabaAliqinFcSmsNumSendRequest;
$req ->setExtend( "" );
$req ->setSmsType( "normal" );
$req ->setSmsFreeSignName( $tel_config[2]["config_value"] );
// $req ->setSmsParam( "{number:'1222',platform:'网站'}" );
$req ->setSmsParam( "{number:'".$rand_num."',platform:'网站'}" );
$req ->setRecNum($tel_number);
$req ->setSmsTemplateCode( $tel_config[3]["config_value"] );
$resp = $c ->execute( $req );
return $resp;
}
//找回密码
public function send_sms_find_password($tel_number,$rand_num){
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。