'家芝服务', 'version' => '1.0.0 Beta', # 产品表设置 主要给survey使用 'product' => 'service/product', 'applet' => array ( 'appid' => 'wx67cccbaaa232d677', 'secret' => '5219147f5f9152a1cb8e60ee775e718d', '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' => 'https://feginesms.market.alicloudapi.com/codeNotice', # 发送方法 get、post 'method' => 'get', # 是否json编码 'json' => false, # header信息 'header' => 'Authorization:APPCODE ca584ae21ce54c999067e77b5995a27b', # body信息 'body' => 'param={code}&phone={mobile}&sign={sign}&skin={skin}', # 短信模板 发送短信时,请加上参数skin=1 'skin' => array ( 'reg' => 35247, 'order' => 35246, 'code' => 35245, # 需要增加一个notice 'notice' => 38099, # order的反馈方案修改后 'feedback' => 38747, ), # 短信签名 'sign' => 47159, # 验证码有效期 默认10分钟 'timeout' => 600, # 一天之内的最大发送次数,默认为10次 'total' => 10, # 不允许多久之内重复发送,默认为60秒 'time' => 60, # 验证码长度 'length' => 6, ), # 注册成功后,调取的接口 'regAction' => '', # 注册成功后,是否发送短信,直接使用skin的key即可 //'regSendSms' => 'reg', # 支付成功后,调用的接口 'pay_notify' => 'service/lib/pay.act', ); return $config;