|
|
@@ -307,4 +307,16 @@ class SiteController extends BaseController
|
|
|
|
|
|
return static::notice('成功', 0);
|
|
|
}
|
|
|
+
|
|
|
+ public function actionRandomId()
|
|
|
+ {
|
|
|
+ $max = \Yii::$app->request->get('cnt', 10);
|
|
|
+
|
|
|
+ $result = [];
|
|
|
+ for ($i = 1; $i <= $max; $i++) {
|
|
|
+ $result[] = PageSnowFake::instance()->generateId();
|
|
|
+ }
|
|
|
+
|
|
|
+ return static::notice($result);
|
|
|
+ }
|
|
|
}
|