12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
- # 一些基本配置
- $config['base'] = array
- (
- # 名称
- 'name' => '嗨赚任务系统',
- # 版本配置
- 'version' => '1.0.0 Beta',
- 'apiConfig' => true,
- 'apiSignature' => 'db',
- 'qrcode' => array
- (
- # 二维码类型:google、php、jquery 暂时只支持php
- 'type' => 'php',
- # 是否生成本地文件
- 'local' => false,
- # 大小
- 'size' => 15,
- ),
- # 站点使用邮箱还是手机作为主账号,如果是手机,请填写手机验证码的配置接口
- 'account' => 'mobile',
- # 性别转换 passport里1为男、2为女 3为未知,如果前端定义与这个不同,请做好转换
- 'sex' => array
- (
- # 前面的索引为前端传过来的值
- 0 => 1,
- 1 => 2,
- 2 => 3,
- ),
- 'mobileCode' => array
- (
- # debug模式
- 'debug' => true,
- # 发送短信的接口
- 'url' => '',
- # 短信签名
- 'sign' => '【DEVER】',
- # 短信签名类型,1为放置在内容之前,2为放置在内容之后
- 'signType' => 2,
- # 短信内容
- 'msg' => '您好,您的验证码为{code},十分钟之内有效。',
- # 一天之内的最大发送次数,默认为10次
- 'total' => 10000,
- # 不允许多久之内重复发送,默认为60秒
- 'time' => 60,
- # 验证码长度
- 'length' => 6,
- ),
- # 注册成功后,调取的接口
- 'regAction' => '',
- );
- $config['template'] = array
- (
- # 静态页面目录
- 'assets' => 'mobile',
- # 模板编译器目录
- 'template' => 'mobile',
- # 模板html文件的所在目录,默认为html
- 'path' => '',
- 'replace' => array
- (
- 'css' => './css/',
- 'js' => './js/',
- 'images' => 'images/',
- ),
- );
- return $config;
|