|
|
@@ -14,9 +14,9 @@ class LlEventController extends BaseController
|
|
|
public $guestAccess = [];
|
|
|
|
|
|
public function actionAddMobile(){
|
|
|
- $get = Yii::$app->request->get();
|
|
|
- $id = $get['id'] ?? 0;
|
|
|
- $mobile = $get['mobile']??'';
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ $id = $post['id'] ?? 0;
|
|
|
+ $mobile = $post['mobile']??'';
|
|
|
if(empty($mobile)){
|
|
|
util::fail('没有手机号');
|
|
|
}
|
|
|
@@ -37,9 +37,9 @@ class LlEventController extends BaseController
|
|
|
|
|
|
//添加微信
|
|
|
public function actionAddWx(){
|
|
|
- $get = Yii::$app->request->get();
|
|
|
- $id = $get['id'] ?? 0;
|
|
|
- $wx = $get['mobile']??'';
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ $id = $post['id'] ?? 0;
|
|
|
+ $wx = $post['mobile']??'';
|
|
|
if(empty($wx)){
|
|
|
util::fail('没有微信');
|
|
|
}
|
|
|
@@ -56,9 +56,9 @@ class LlEventController extends BaseController
|
|
|
//添加身份证号
|
|
|
public function actionAddNo()
|
|
|
{
|
|
|
- $get = Yii::$app->request->get();
|
|
|
- $id = $get['id'] ?? 0;
|
|
|
- $no = $get['no']??'';
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ $id = $post['id'] ?? 0;
|
|
|
+ $no = $post['no']??'';
|
|
|
if(empty($no)){
|
|
|
util::fail('没有身份证号');
|
|
|
}
|