1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
- // +----------------------------------------------------------------------
- // | Author: 老猫 <thinkcmf@126.com>
- // +----------------------------------------------------------------------
- namespace app\matchmaker\controller;
- use app\matchmaker\model\MatchmakerModel;
- class MyController extends MatchmakerBaseController
- {
- public function index()
- {
- $data['matchmaker'] = $this->matchmaker;
- $data['matchmaker']['avatar'] = cmf_get_image_url($data['matchmaker']['avatar']);
- return $this->fetch('',$data);
- }
- public function info()
- {
- $data['matchmaker'] = $this->matchmaker;
- $data['matchmaker']['avatar'] = cmf_get_image_url($data['matchmaker']['avatar']);
- return $this->fetch('',$data);
- }
- public function infoPost()
- {
- $data = $this->request->post();
- MatchmakerModel::update($data);
- $this->success();
- }
- }
|