浏览代码

Merge branch 'dev'

master
Guillaume 4 年前
父节点
当前提交
5e98fc7841
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. +8
    -3
      backend/controllers/UserController.php

+ 8
- 3
backend/controllers/UserController.php 查看文件

@@ -155,9 +155,14 @@ class UserController extends BackendController
{
$model = new User();

$userExist = User::searchOne([
'email' => Yii::$app->request->post('email')
]);
$userExist = false ;
$posts = Yii::$app->request->post() ;

if($posts) {
$userExist = User::searchOne([
'email' => $posts['User']['email']
]);
}

if ($userExist) {
Producer::addUser($userExist->id, GlobalParam::getCurrentProducerId()) ;

正在加载...
取消
保存