shish 6 лет назад
Родитель
Сommit
f043c7e795
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/www/controllers/ApplyController.php

+ 1 - 1
app/www/controllers/ApplyController.php

@@ -55,7 +55,7 @@ class ApplyController extends BaseController
 		$get['long'] = isset($get['longitude']) ? $get['longitude'] : '';
 		$get['lat'] = isset($get['latitude']) ? $get['latitude'] : '';
 		
-		$cacheKey = 'OPEN_SHOP_APPLY_' . $userId;
+		$cacheKey = 'OPEN_SHOP_APPLY_' . $this->userId;
 		$cacheCode = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
 		if (isset($cacheCode) == false || empty($cacheCode)) {
 			util::fail('没有验证码');