diff --git a/config/params.php b/config/params.php index 6ebf2792..9dcb94f8 100644 --- a/config/params.php +++ b/config/params.php @@ -2,4 +2,5 @@ return [ 'adminEmail' => 'admin@example.com', + "version" => "1.0.7" ]; diff --git a/controllers/ApiController.php b/controllers/ApiController.php index e8ab355a..f35bb334 100644 --- a/controllers/ApiController.php +++ b/controllers/ApiController.php @@ -101,7 +101,7 @@ class ApiController extends Controller { ] ]; $res = json_decode(file_get_contents($sync->data, false, stream_context_create($options)), true); - if ($res['status'] == 1000) { + if (in_array($res['status'], [1000, 10000])) { $modelRes = new \app\models\ResponseReq(); $modelRes->create(json_encode($res)); $value->delete(); diff --git a/vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/content.php b/vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/content.php index 718ca45c..02ac2e8b 100644 --- a/vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/content.php +++ b/vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/content.php @@ -1,28 +1,29 @@
- +