123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- class Demo extends Api
- {
-
-
-
-
-
- protected $noNeedLogin = ['test', 'test1'];
-
- protected $noNeedRight = ['test2'];
-
- public function test()
- {
- $password = 123456;
- $salt = '460dd5';
- $password = $this->auth->getEncryptPassword($password,$salt);
- echo $password;exit;
- $this->success('返回成功', $this->request->param());
- }
-
- public function test1()
- {
- $a = [
- [
- 'goods_sku_price_id' => 93,
- 'goods_id' => 33,
- ],
- [
- 'goods_sku_price_id' => 96,
- 'goods_id' => 34,
- ],
- ];
- dump(json_encode($a));
- }
-
- public function test2()
- {
- $this->success('返回成功', ['action' => 'test2']);
- }
-
- public function test3()
- {
- $this->success('返回成功', ['action' => 'test3']);
- }
- }
|