26 lines
520 B
PHP
26 lines
520 B
PHP
<?php
|
|
|
|
/**
|
|
* @Author: Zhou Yuyang <1009465756@qq.com> 10:28 2017/02/02
|
|
* @Copyright 2015-2020 SISMO
|
|
* @Project homepage https://github.com/CNSISMO
|
|
* @Version 2.0
|
|
*/
|
|
|
|
|
|
namespace Home\Controller;
|
|
|
|
use Think\Controller;
|
|
|
|
class GiftController extends Controller{
|
|
|
|
public function index(){
|
|
$gift = M('links')->select();
|
|
$tmodel= M('setting');
|
|
$settings = $tmodel -> where('id=1') -> select();
|
|
$this->assign('settings', $settings);
|
|
$this->assign('gift',$gift);
|
|
$this->display();
|
|
}
|
|
}
|