作者 李忠强

更新

... ... @@ -11,7 +11,7 @@ use app\common\controller\Api;
*/
class Cart extends Api
{
protected $noNeedLogin = ['*'];
// protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
/**
... ...
... ... @@ -17,7 +17,7 @@ use think\Db;
*/
class Classification extends Api
{
protected $noNeedLogin = ['*'];
// protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
/**
... ...
... ... @@ -20,6 +20,7 @@ class Common extends Api
protected $noNeedRight = '*';
/**
* @ApiInternal
* 加载初始化
*
* @param string $version 版本号
... ...
... ... @@ -5,6 +5,7 @@ namespace app\api\controller;
use app\common\controller\Api;
/**
* @ApiInternal
* 示例接口
*/
class Demo extends Api
... ...
... ... @@ -7,6 +7,7 @@ use app\common\library\Ems as Emslib;
use app\common\model\User;
/**
* @ApiInternal
* 邮箱验证码接口
*/
class Ems extends Api
... ...
... ... @@ -16,7 +16,7 @@ use think\Db;
class Goods extends Api
{
protected $noNeedRight = ['*'];
protected $noNeedLogin = ['*'];
// protected $noNeedLogin = ['*'];
/**
... ...
... ... @@ -14,7 +14,7 @@ use think\Db;
*/
class Index extends Api
{
protected $noNeedLogin = ['*'];
// protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
/**
... ...
... ... @@ -17,7 +17,7 @@ use think\exception\PDOException;
class Order extends Api
{
protected $noNeedLogin = ['*'];
protected $noNeedRight = ['*'];
// protected $noNeedRight = ['*'];
/**
* @ApiTitle (订单列表)
... ...
... ... @@ -10,7 +10,7 @@ use app\common\controller\Api;
class Rider extends Api
{
protected $noNeedRight = ['*'];
protected $noNeedLogin = ['*'];
// protected $noNeedLogin = ['*'];
/**
* @ApiTitle (骑手订单页)
... ...
... ... @@ -8,6 +8,7 @@ use app\common\model\User;
use think\Hook;
/**
* @ApiInternal
* 手机短信接口
*/
class Sms extends Api
... ...
... ... @@ -6,6 +6,7 @@ use app\common\controller\Api;
use fast\Random;
/**
* @ApiInternal
* Token接口
*/
class Token extends Api
... ...
... ... @@ -16,8 +16,8 @@ use think\Db;
*/
class User extends Api
{
protected $noNeedLogin = ['*'];
// protected $noNeedLogin = ['third'];
// protected $noNeedLogin = ['*'];
protected $noNeedLogin = ['third'];
protected $noNeedRight = '*';
public function _initialize()
... ...
... ... @@ -6,6 +6,7 @@ use app\common\controller\Api;
use app\common\model\User;
/**
* @ApiInternal
* 验证接口
*/
class Validate extends Api
... ...
... ... @@ -15,18 +15,18 @@ return array (
'fixedpage' => 'dashboard',
'categorytype' =>
array (
'default' => 'Default',
'page' => 'Page',
'article' => 'Article',
'default' => '默认',
'page' => '单页',
'article' => '文章',
'test' => 'Test',
),
'configgroup' =>
array (
'basic' => 'Basic',
'email' => 'Email',
'dictionary' => 'Dictionary',
'user' => 'User',
'example' => 'Example',
'basic' => '基础配置',
'email' => '邮件配置',
'dictionary' => '字典配置',
'user' => '会员配置',
'example' => '密钥配置',
),
'mail_type' => '1',
'mail_smtp_host' => 'smtp.qq.com',
... ... @@ -37,13 +37,15 @@ return array (
'mail_from' => '10000@qq.com',
'attachmentcategory' =>
array (
'category1' => 'Category1',
'category2' => 'Category2',
'custom' => 'Custom',
'category1' => '分类一',
'category2' => '分类二',
'custom' => '自定义',
),
'user_agreement' => '<p>64645646564公开警告</p><p>;回来了框架</p>',
'privacy_agreement' => '<p>45315448</p><p>他房间后</p>',
'notice' => '阿达萨达萨达撒旦撒旦',
'advert' => '/assets/img/qrcode.png',
'invite_rule' => '啊实打实大苏打',
'secret' => '',
'appid' => '',
);
... ...