<?php
$config['base'] = array
(
	'name' => '农场盒子管理系统',
	'version' => '1.0.0 Beta',

	'applet' => array
	(
		'appid' => 'wxd03e9b0848beb6a7',
		'secret' => 'c5295869e033d23a672c6349656eb033',
		'url' => 'https://api.weixin.qq.com/sns/jscode2session',
	),

	# 站点使用邮箱还是手机作为主账号,如果是手机,请填写手机验证码的配置接口
	'account' => 'mobile',
	# 性别转换 passport里1为男、2为女 3为未知,如果前端定义与这个不同,请做好转换
	'sex' => array
	(
		# 前面的索引为前端传过来的值
		2 => 2,
		1 => 1,
		0 => 3,
	),
	'mobileCode' => array
	(
		# debug模式
		'debug' => true,
		# 发送短信的接口
		'url' => 'http://api.shumi365.com:8090/sms/send.do',
		# 发送方法 get、post
		'method' => 'get',
		# 是否json编码
		'json' => false,
		# header信息
		'header' => '',
		# body信息
		'body' => 'userid=400092&pwd=268692&timespan=' . date('YmdHis').'&msgfmt=UTF8',
		# 短信模板 发送短信时,请加上参数skin=1
		'skin' => array
		(
			'reg' => 35247,
			'order' => 35246,
			//'code' => 35245,
		),
		# 短信签名
		'sign' => 0,
		# 验证码有效期 默认10分钟
		'timeout' => 600,
		# 一天之内的最大发送次数,默认为10次
		'total' => 10,
		# 不允许多久之内重复发送,默认为60秒
		'time' => 60,
		# 验证码长度
		'length' => 6,
	),
	# 注册成功后,调取的接口
	'regAction' => '',

	# 注册成功后,是否发送短信,直接使用skin的key即可
	//'regSendSms' => 'reg',

	# 支付成功后,调用的接口
	'pay_notify' => 'product/lib/pay.act',
);
return $config;