Przeglądaj źródła

你已经申请过了

shish 6 lat temu
rodzic
commit
7e46649bef

+ 1 - 1
app/saas/controllers/SetMealController.php

@@ -48,7 +48,7 @@ class SetMealController extends BaseController
 	{
 		$id = Yii::$app->request->get('id', 1);
 		$detail = SetMealService::getSetById($id);
-		$detail['introduce'] = '适用于5人以下的花店,可以满足日常的经、管理和营销需求。';
+		$detail['introduce'] = '适用于5人以下的花店,可以满足日常的经、管理和营销需求。';
 		$function = [
 			['name' => '微信商城', 'has' => 1],
 			['name' => '节日自动涨价', 'has' => 1],

+ 4 - 0
app/www/controllers/ApplyController.php

@@ -53,6 +53,10 @@ class ApplyController extends BaseController
 		$get['userId'] = $this->userId;
 		$get['long'] = isset($get['longitude']) ? $get['longitude'] : '';
 		$get['lat'] = isset($get['latitude']) ? $get['latitude'] : '';
+		$apply = ApplyClass::getByCondition(['userId' => $this->userId]);
+		if (!empty($apply)) {
+			util::fail('您已经申请过了');
+		}
 		ApplyClass::addApply($get);
 		if ($rand == 0) {
 			$data = ['focus' => 0, 'qrCode' => 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3602624501,870193918&fm=26&gp=0.jpg'];