Uninote
Uninote

Server

高德导航 Key

代码路径:Common/function.php::driver_distance()

// ...
$url = "https://restapi.amap.com/v3/direction/driving";
$data = [
	'key' => 'xxxxxxx',	// 高的导航的 key
	'origin' => $origin,
	'destination' => $destination,
	'strategy' => 14,
	'output' => 'json'
];
// ...

配置

代码路径: include/config.inc.php

// ...
define("DATAKEY","xxxx");			  //定义公司分配的项目唯一串(LINE: 34)
define("SYS_ZH_NAME","xxx"); 		 //定义项目中文名称(不允许超过6个汉字, LINE: 35)
define("SYS_COMPANY","xxx"); 		 //定义客户公司名称

// ...
define("SYS_SERVER_IP","x");

// 保险配置
define('SECURE_URL', 'http://test.tpis.tpaic.com:13180/webservice/slNonMotor.do');
define('SECURE_USER_NAME', 'avaiTest');//用户名
define('SECURE_PWD', 'password');//密码

// 升级路径
define("SYS_ANDROID_URL","http://download.qwicar.com/xjc_user_".ANDROID_LAST_VERSION.".apk");//定义Android升级路径
define("SYS_IPHONE_URL","https://itunes.apple.com/cn/app/id1310242676?mt=8");//定义iPhone升级路径
// 司机端路径
define("DRIVER_SYS_ANDROID_URL","http://download.qwicar.com/xjc_driver_".DRIVER_ANDROID_LAST_VERSION.".apk");//定义Android升级路径
define("DRIVER_SYS_IPHONE_URL","https://itunes.apple.com/cn/app/id1310133198?mt=8");//定义iPhone升级路径

代码路径:include/extend.inc.php

// 云之讯虚拟中间号
$datetime = date("YmdHis",time());
//签名字段
$sig = strtoupper(md5("b7bf493199cf49f695cc3d1e249f61a486b02d4095df42e587408c664b8013fa".$datetime));
$url ="https://api.ucpaas.com/2014-06-30/Accounts/b7bf493199cf49f695cc3d1e249f61a4/safetyCalls/allocNumber?sig=".$sig;
$data = "b7bf493199cf49f695cc3d1e249f61a4:" .$datetime;


// 华信推广类型短信发送
$content = '莱芜⇆济南|莱芜⇆泰安,订车电话:400-111-0900。搜索小叫车微信公众号qwicar关注,首单享5元优惠。-回复T退订【小叫车】';
$password = strtoupper(md5('ACYX045541'));
if(empty($mobile)) return ;

$url ="http://dx110.ipyy.net/smsJson.aspx?action=send";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, "userid=&account=ACYX0456&password={$password}&mobile={$mobile}&content={$content}&sendTime=&extno=");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);//正式部署必须为1,防止向客户端输出
$result=curl_exec($ch);//
curl_close($ch);

// 阿里云发送短信
function ext_send_sms_aliyun($mobile,$template_id,$param_arr=array())
{
	// ...
}

// 查询手机短信剩余条数(河马)
$url ="http://oa.hemaapp.cn/index.php/Webadmin/?m=Manage&a=smscount_get";

// 生成保险单,在乘客或司机点了上车时调用
function ext_policy_add($trip_id)
{
	// ...
}

文件路径:include/language.inc.php

$msg['800'] = '小叫车温馨提示您,当前时段处于用车高峰期,如紧急出行请先咨询客服询问当前车辆情况。';

其它

文件路径: plugins/aliyun_dysms/api_demo/SmsDemo.php

public static function getAcsClient() {
	// 产品名称:云通信流量服务API产品,开发者无需替换
	product = "Dysmsapi";

	//产品域名,开发者无需替换
	$domain = "dysmsapi.aliyuncs.com";

	// TODO 此处需要替换成开发者自己的AK (https://ak-console.aliyun.com/)
	$accessKeyId = "LTAIOLZLyylviL4L"; // AccessKeyId

	$accessKeySecret = "xKg8Q72iO3fHEReZ1mqU02V5wTpzBB"; // AccessKeySecret


	// 暂时不支持多Region
	$region = "cn-hangzhou";

	// 服务结点
	$endPointName = "cn-hangzhou";

	if(static::$acsClient == null) {
		//初始化acsClient,暂不支持region化
		$profile = DefaultProfile::getProfile($region, $accessKeyId, $accessKeySecret);

		// 增加服务结点
		DefaultProfile::addEndpoint($endPointName, $region, $product, $domain);

		// 初始化AcsClient用于发起请求
		static::$acsClient = new DefaultAcsClient($profile);
	}
	return static::$acsClient;
}

推送

路径: plugins/GetuiPush/

支付

支付包/微信/银联: 路径: plugins/OnlinePay

分享活动

路径:plugins/share

虚拟中间号回调

路径: plugins/VirtualMobile

微信版

路径: wap

保险后台

路径: web/Secureadmin

PLACEHOLDER

快来用车笔记

点赞(1) 阅读(12) 举报
目录
标题