切换导航条
此项目
正在载入...
登录
郭盛
/
resource
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭盛
5 years ago
提交
3e2f083724b2cf9e1a3914cc2750916ff5a6ba51
1 个父辈
8483e650
1 个管道 的构建
通过
耗费 0 秒
测试
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
13 行增加
和
12 行删除
.idea/workspace.xml
api/index/controller/ActiveController.php
.idea/workspace.xml
查看文件 @
3e2f083
...
...
@@ -2,7 +2,6 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"73de7205-e736-4b59-941a-a54ab4506a41"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/api/index/controller/ActiveController.php"
afterPath=
"$PROJECT_DIR$/api/index/controller/ActiveController.php"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -17,8 +16,8 @@
<file
leaf-file-name=
"ActiveController.php"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/api/index/controller/ActiveController.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"473"
>
<caret
line=
"370"
column=
"40"
lean-forward=
"true"
selection-start-line=
"370"
selection-start-column=
"40"
selection-end-line=
"370"
selection-end-column=
"40"
/>
<state
relative-caret-position=
"514"
>
<caret
line=
"564"
column=
"23"
lean-forward=
"false"
selection-start-line=
"564"
selection-start-column=
"23"
selection-end-line=
"564"
selection-end-column=
"23"
/>
<folding>
<element
signature=
"e#129#167#0#PHP"
expanded=
"true"
/>
<element
signature=
"e#373#959#0#PHP"
expanded=
"false"
/>
...
...
@@ -114,8 +113,8 @@
</component>
<component
name=
"PhpWorkspaceProjectConfiguration"
backward_compatibility_performed=
"true"
/>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"457"
/>
<option
name=
"y"
value=
"74"
/>
<option
name=
"x"
value=
"351"
/>
<option
name=
"y"
value=
"53"
/>
<option
name=
"width"
value=
"1717"
/>
<option
name=
"height"
value=
"935"
/>
</component>
...
...
@@ -221,15 +220,15 @@
<workItem
from=
"1568861318343"
duration=
"14697000"
/>
<workItem
from=
"1568881010503"
duration=
"9880000"
/>
<workItem
from=
"1568938332139"
duration=
"12331000"
/>
<workItem
from=
"1568958569115"
duration=
"
480
2000"
/>
<workItem
from=
"1568958569115"
duration=
"
508
2000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"280
33
6000"
/>
<option
name=
"totallyTimeSpent"
value=
"280
61
6000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
457"
y=
"74
"
width=
"1717"
height=
"935"
extended-state=
"0"
/>
<frame
x=
"
351"
y=
"53
"
width=
"1717"
height=
"935"
extended-state=
"0"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.16113459"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
...
...
@@ -626,8 +625,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/api/index/controller/ActiveController.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"473"
>
<caret
line=
"370"
column=
"40"
lean-forward=
"true"
selection-start-line=
"370"
selection-start-column=
"40"
selection-end-line=
"370"
selection-end-column=
"40"
/>
<state
relative-caret-position=
"514"
>
<caret
line=
"564"
column=
"23"
lean-forward=
"false"
selection-start-line=
"564"
selection-start-column=
"23"
selection-end-line=
"564"
selection-end-column=
"23"
/>
<folding>
<element
signature=
"e#129#167#0#PHP"
expanded=
"true"
/>
<element
signature=
"e#373#959#0#PHP"
expanded=
"false"
/>
...
...
api/index/controller/ActiveController.php
查看文件 @
3e2f083
...
...
@@ -371,9 +371,9 @@ class ActiveController extends RestBaseController
// 变大关键字
//"emphasis_keyword" => "keyword1.DATA",
);
$this
->
success
(
'SUCCESS'
,
$post_data
);
$result
=
json_decode
(
$this
->
send
(
$post_data
),
true
);
$result
=
json_decode
(
$this
->
send
(
$post_data
),
true
);
$this
->
success
(
'SUCCESS'
,
$post_data
);
if
(
!
empty
(
$result
[
'errcode'
])){
$this
->
error
([
'code'
=>
40002
,
'msg'
=>
$result
[
'errmsg'
]]);
}
...
...
@@ -541,6 +541,7 @@ class ActiveController extends RestBaseController
$res
=
$common
->
http_get
(
$url
);
$json_arr
=
json_decode
(
$res
,
true
);
$token
=
$json_arr
[
'access_token'
];
print_r
(
$token
);
return
$token
;
}
function
send_post
(
$url
,
$post_data
)
...
...
@@ -561,6 +562,7 @@ class ActiveController extends RestBaseController
{
$url
=
"https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token="
.
$this
->
get_access_token
();
$data
=
json_encode
(
$post_data
,
true
);
print_r
(
$data
);
return
$this
->
send_post
(
$url
,
$data
);
}
public
function
getOpenid
(
$user_id
){
...
...
请
注册
或
登录
后发表评论