fix bug token - version
This commit is contained in:
@@ -417,8 +417,8 @@ class ApiController extends Controller {
|
||||
}
|
||||
$version = \app\models\SyncUrl::findOne(['key_config' => 'version']);
|
||||
if ($version) {
|
||||
$token->data = $post['version'];
|
||||
$token->save();
|
||||
$version->data = $post['version'];
|
||||
$version->save();
|
||||
} else {
|
||||
$model = new \app\models\SyncUrl();
|
||||
$model->create([
|
||||
@@ -469,8 +469,12 @@ class ApiController extends Controller {
|
||||
}
|
||||
|
||||
public function actionTest() {
|
||||
$updating = \app\models\SyncUrl::findOne(['key_config' => 'updating']);
|
||||
var_dump($updating->data);
|
||||
// $updating = \app\models\SyncUrl::findOne(['key_config' => 'token']);
|
||||
$updating = \app\models\SyncUrl::find()->all();
|
||||
foreach ($updating as $key => $value) {
|
||||
echo $value->key_config . " " . $value->data . "<br>";
|
||||
}
|
||||
exit();
|
||||
}
|
||||
|
||||
public function actionReGenFeature() {
|
||||
|
||||
Reference in New Issue
Block a user