29 lines
689 B
PHP
29 lines
689 B
PHP
<?php
|
|
namespace app\controllers\admin;
|
|
use Yii;
|
|
use yii\web\Controller;
|
|
use Mrgoon\AliSms\AliSms;
|
|
use yii\db\Connection;
|
|
class CloudController extends Controller{
|
|
public $enableCsrfValidation = false;
|
|
|
|
|
|
public function actionGainList(){
|
|
$request = Yii::$app->request;
|
|
if ($request->isPost){
|
|
//先提取本地数据对比
|
|
$data=file_put_contents('./web/secret.json',Yii::$app->request->post('lock'));
|
|
die;
|
|
}
|
|
}
|
|
|
|
|
|
public function actionReject(){
|
|
$request = Yii::$app->request;
|
|
if ($request->isPost){
|
|
$data=file_put_contents('./web/secret.json','');
|
|
die;
|
|
}
|
|
}
|
|
|
|
} |