update version

This commit is contained in:
dongpd 2021-03-16 16:48:30 +07:00
parent 5bed09b67f
commit 6c29581ded
3 changed files with 10 additions and 8 deletions

View File

@ -2,4 +2,5 @@
return [
'adminEmail' => 'admin@example.com',
"version" => "1.0.7"
];

View File

@ -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();

View File

@ -1,7 +1,7 @@
<?php
use yii\widgets\Breadcrumbs;
use dmstr\widgets\Alert;
?>
<div class="content-wrapper">
<!-- <section class="content-header">
@ -10,19 +10,20 @@ use dmstr\widgets\Alert;
[
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
]
) ?>
)
?>
</section>-->
<section class="content" style="padding: 0 0 15px 0;">
<input type="hidden" value="<?php echo Yii::$app->user->id; ?>" name="current_user_id">
<?= Alert::widget() ?>
<?= $content ?>
<?= $content ?>
</section>
</div>
<footer class="main-footer">
<div class="pull-right hidden-xs" style="margin-top: 10px;">
<!--<b>Hotline</b> <a href="tel:0912461556">091.246.1556</a>-->
<div class="pull-right hidden-xs">
<b>Version</b> <?php echo Yii::$app->params["version"]; ?>
</div>
<!--<strong>Copyright &copy; 2020 <a href="https://beetinnovators.com/"><img src="/images/BI_Logo.png" width="80px"></a> & <a href="https://tctech.vn/"><img src="/images/TCTech.jpg" width="80px"></a>.</strong> All rights reserved.-->
<strong>Copyright &copy; 2020 <a href="https://beetinnovators.com/">BEETINNOVATORS</a>.</strong> All rights reserved.