TestController.php 830 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace frontend\controllers;
  3. use Yii;
  4. use frontend\models\LottoSms;
  5. use common\helpers\Utils;
  6. use backend\helpers\DateTimeHelper;
  7. use common\helpers\TaobaoApiHelper;
  8. class TestController extends BaseController
  9. {
  10. // 我的key
  11. public $sandBoxConfig = ['isSandBox' => true, 'appKey' => '1024740086', 'appSecret' => 'sandbox2b118eadc91fccab8c74959fe', 'serverUrl' => 'http://gw.api.tbsandbox.com/router/rest'];
  12. public $config = ['isSandBox' => false, 'appKey' => '24740086', 'appSecret' => '084a3c9e8a45817e37a1f4a44c0e784c'];
  13. public function actionSend()
  14. {
  15. // $tb = new TaobaoApiHelper($this->sandBoxConfig);
  16. // $result = $tb->sendSmsCode('13480184235', '123456');
  17. // echo '<pre>';print_r($result);exit;
  18. }
  19. public function actionTest()
  20. {
  21. echo 123;
  22. }
  23. }