瀏覽代碼

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()) ;

Loading…
取消
儲存