shish 3 lat temu
rodzic
commit
1692682694
1 zmienionych plików z 10 dodań i 0 usunięć
  1. 10 0
      app-mall/controllers/UserController.php

+ 10 - 0
app-mall/controllers/UserController.php

@@ -17,6 +17,16 @@ use yii\helpers\Json;
 class UserController extends BaseController
 {
 
+    //修改信息 ssh 20221015
+    public function actionUpdate()
+    {
+        $user = $this->user;
+        if (empty($user)) {
+            util::fail('请先登录');
+        }
+        $userId = $user->id ?? 0;
+    }
+
     //获取当前登录用户的信息 ssh 20221014
     public function actionCurrentInfo()
     {