切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
887ff236462f8db8b2d2ef31b5ca45808e87b92b
1 个父辈
3abb0d21
1 个管道 的构建
通过
耗费 26 秒
bug
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
36 行增加
和
1 行删除
app/portal/controller/TestController.php
public/themes/simpleboot3/public/assets/css/reset.css
simplewind/cmf/controller/WeChatBaseController.php
app/portal/controller/TestController.php
0 → 100644
查看文件 @
887ff23
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/8/21
* Time: 19:08
*/
namespace
app\portal\controller
;
use
cmf\controller\HomeBaseController
;
use
think\Db
;
class
TestController
extends
HomeBaseController
{
/**
* 恢复父级id
* @throws \think\Exception
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
* @throws \think\exception\PDOException
*/
public
function
test
(){
$data
=
Db
::
name
(
'my_user'
)
->
where
([
'status'
=>
3
,
'inviter_phone'
=>
[
'neq'
,
''
]])
->
select
()
->
toArray
();
foreach
(
$data
as
$key
=>
$vo
){
$result
=
Db
::
name
(
'my_user'
)
->
where
([
'phone'
=>
$vo
[
'inviter_phone'
]])
->
value
(
'id'
);
if
(
!
empty
(
$result
)){
Db
::
name
(
'my_user'
)
->
where
([
'id'
=>
$vo
[
'id'
]])
->
update
([
'pid'
=>
$result
]);
}
}
}
}
\ No newline at end of file
...
...
public/themes/simpleboot3/public/assets/css/reset.css
查看文件 @
887ff23
...
...
@@ -185,6 +185,7 @@ a:hover {
ul
,
ol
{
list-style
:
none
;
margin-top
:
50px
;
}
h1
,
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
887ff23
...
...
@@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
// $user = Db::name('user')->where('id',
43
6)->find();
// $user = Db::name('user')->where('id',6)->find();
// cmf_update_current_user($user);
// session('user',null);
$userId
=
cmf_get_current_user_id
();
...
...
请
注册
或
登录
后发表评论