|
@@ -3,6 +3,7 @@
|
|
|
namespace app\api\controller;
|
|
|
|
|
|
use app\common\controller\Api;
|
|
|
+use think\Db;
|
|
|
|
|
|
* 小米平台的广告
|
|
|
* https:
|
|
@@ -12,6 +13,15 @@ class Advert extends Api
|
|
|
protected $noNeedLogin = ['*'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
+ public function index(){
|
|
|
+ $list = Db::name('yimi_advert')->order('id desc')->page($this->page,100)->select();
|
|
|
+ foreach($list as $key => &$val){
|
|
|
+ $val['createdate'] = date('Y-m-d H:i:s',$val['createtime']);
|
|
|
+
|
|
|
+ }
|
|
|
+ dump($list);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public function xor_enc($str,$key)
|
|
|
{
|
|
@@ -38,7 +48,7 @@ class Advert extends Api
|
|
|
}*/
|
|
|
|
|
|
|
|
|
- public function index(){
|
|
|
+ public function indextest(){
|
|
|
|
|
|
$api_url = 'http://trail.e.mi.com/global/log?';
|
|
|
$api_url_test = 'http://trail.e.mi.com/global/test?';
|