Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
83d7eb9f
Commit
83d7eb9f
authored
Mar 06, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进场对客户短信提醒变量短连接
parent
f3e46f75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
OrderLog.php
application/api_broker/controller/OrderLog.php
+3
-6
config.php
application/config.php
+2
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
83d7eb9f
...
@@ -136,7 +136,7 @@ class OrderLog extends Basic
...
@@ -136,7 +136,7 @@ class OrderLog extends Basic
$push_client
->
record
((
int
)
$params
[
"report_id"
],
(
int
)
$params
[
"order_id"
],
0
,
''
,
(
int
)
$this
->
agentId
);
$push_client
->
record
((
int
)
$params
[
"report_id"
],
(
int
)
$params
[
"order_id"
],
0
,
''
,
(
int
)
$this
->
agentId
);
//对客户发送短信通知 7151
//对客户发送短信通知 7151
$this
->
sendSMSForUser
(
$params
[
"re
ception_name"
],
$params
[
"re
port_id"
]);
$this
->
sendSMSForUser
(
$params
[
"report_id"
]);
return
$this
->
response
(
"200"
,
"request success"
,
[]);
return
$this
->
response
(
"200"
,
"request success"
,
[]);
}
else
{
}
else
{
return
$this
->
response
(
"101"
,
"request faild"
);
return
$this
->
response
(
"101"
,
"request faild"
);
...
@@ -147,18 +147,15 @@ class OrderLog extends Basic
...
@@ -147,18 +147,15 @@ class OrderLog extends Basic
/**
/**
* 对客户发送短信通知
* 对客户发送短信通知
* @param $agent_name
* @param $report_id
* @param $report_id
* @return bool
* @return bool
*/
*/
public
function
sendSMSForUser
(
$report_id
){
public
function
sendSMSForUser
(
$agent_name
,
$report_id
){
$report
=
new
OReportModel
();
$report
=
new
OReportModel
();
$messageUntil
=
new
MessageUntils
();
$messageUntil
=
new
MessageUntils
();
$user_phone
=
$report
->
getFieldValue
(
'user_phone'
,
[
'id'
=>
$report_id
]);
$user_phone
=
$report
->
getFieldValue
(
'user_phone'
,
[
'id'
=>
$report_id
]);
$data
=
[
$agent_name
];
$result
=
$messageUntil
->
sendSMSForUser
(
$user_phone
,[
SMS_TEMPLATE_URL
],
'415209'
);
$result
=
$messageUntil
->
sendSMSForUser
(
$user_phone
,
$data
,
'415209'
);
if
(
$result
==
'true'
)
{
if
(
$result
==
'true'
)
{
return
true
;
return
true
;
}
else
{
}
else
{
...
...
application/config.php
View file @
83d7eb9f
...
@@ -26,6 +26,8 @@ define('WEEK_WORK_IMG', IMAGES_URL . 'static'. DS . 'week_work_img/'); //周报
...
@@ -26,6 +26,8 @@ define('WEEK_WORK_IMG', IMAGES_URL . 'static'. DS . 'week_work_img/'); //周报
define
(
'PHONE_VOICE'
,
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'voice'
);
//录音绝对路径
define
(
'PHONE_VOICE'
,
ROOT_PATH
.
'public'
.
DS
.
'static'
.
DS
.
'voice'
);
//录音绝对路径
define
(
'SHOP_IMAGE_DEPOT_URL'
,
IMAGES_URL
.
'static'
.
DS
.
'shop_image_depot/'
);
//C端商铺随机图片地址
define
(
'SHOP_IMAGE_DEPOT_URL'
,
IMAGES_URL
.
'static'
.
DS
.
'shop_image_depot/'
);
//C端商铺随机图片地址
define
(
'SMS_TEMPLATE_URL'
,
'https://dwz.cn/fUipTngy'
);
//进场对客户短信提醒变量短连接
return
[
return
[
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 应用设置
// | 应用设置
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment