<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # MVC結構 ## Controller層 D:\wamp\www\xue.test\xuetang\protected\modules\personal\controllers\UserController.php ``` /* * 增加推薦老師 * author huanghq 08/09/2018 */ public function actionAddRecommend(){ $recommendPhone = Yii::app()->request->getParam('recommendPhone'); $status = UserService::factory()->logRecommendPhone($recommendPhone,Yii::app()->user->id); switch ($status){ case '-1': $this->returnResponse(array('status'=>'-1','msg'=>"手機號碼不能為空")); break; case '-2': $this->returnResponse(array('status'=>'-2','msg'=>"手機號碼格式不正確")); break; case '-3': $this->returnResponse(array('status'=>'-3','msg'=>"找不到該老師賬號")); case '-4': $this->returnResponse(array('status'=>'-4','msg'=>"只能關聯老師")); break; default: $nickName = V2UserService::factory()->getShowName($status,'ketang'); $msg = "已關聯{$nickName}老師(手機號:{$recommendPhone})"; $this->returnResponse(array('status'=>'0','msg'=>$msg)); } } ``` ### 返回JSON格式 D:\wamp\www\xue.test\xuetang\protected\components\ResponseUtils.php ResponseUtils::json(array('data'=>$list)); ### 返回視圖 $this->render('index', []); ## Service層 D:\wamp\www\xue.test\xuetang\protected\service\UserService.php D:\wamp\www\xue.test\xuetang\protected\service\XTUserService.php ## Model層 D:\wamp\www\xue.test\xuetang\protected\models\weike\wkeRecommend.php
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看