diff --git a/app/controller/admin/api/v1/PromotionController.php b/app/controller/admin/api/v1/PromotionController.php index e4add05..18d2449 100644 --- a/app/controller/admin/api/v1/PromotionController.php +++ b/app/controller/admin/api/v1/PromotionController.php @@ -29,6 +29,7 @@ class PromotionController $invite_code=Random::str_random(7); $Recommend =new Recommend(); $Recommend->invite_code=$invite_code; + $Recommend->save(); return ApiResponse::success(200, $invite_code); } /** diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..be261ac Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/index.html b/public/index.html index 6661ba2..d1eec51 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,7 @@
- +