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
af0cdff9
Commit
af0cdff9
authored
Aug 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
86ab238d
eb1cc08f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
9 deletions
+11
-9
Basic.php
application/index/extend/Basic.php
+2
-2
footer_tpl.html
application/index/view/global/footer_tpl.html
+2
-2
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+5
-4
user_template_tpl.html
public/resource/template/user_template_tpl.html
+2
-1
No files found.
application/index/extend/Basic.php
View file @
af0cdff9
...
@@ -155,9 +155,9 @@ class Basic extends Controller
...
@@ -155,9 +155,9 @@ class Basic extends Controller
$m_user
=
new
Users
();
$m_user
=
new
Users
();
$where
[
'agent_id'
]
=
$this
->
userId
;
$where
[
'agent_id'
]
=
$this
->
userId
;
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$is_
=
$m_user
->
selectUser
(
$where
,
'id,agent_id'
);
$is_
=
$m_user
->
getMyUserCount
(
$where
);
if
(
$is_
[
'agent_id'
]
==
0
)
{
if
(
$is_
)
{
$is_auth
=
1
;
$is_auth
=
1
;
}
else
{
}
else
{
$is_auth
=
$is_
>
0
?
1
:
0
;
$is_auth
=
$is_
>
0
?
1
:
0
;
...
...
application/index/view/global/footer_tpl.html
View file @
af0cdff9
<script
src=
'/resource/lib/js/require.min.js'
data-main=
'/resource/js/main?version=121231'
charset=
'utf-8'
></script>
<script
src=
'/resource/lib/js/require.min.js'
data-main=
'/resource/js/main?version=1212311'
charset=
'utf-8'
></script>
\ No newline at end of file
\ No newline at end of file
application/task/controller/PrivacyNumber.php
View file @
af0cdff9
...
@@ -99,6 +99,7 @@ class PrivacyNumber
...
@@ -99,6 +99,7 @@ class PrivacyNumber
*/
*/
public
function
releaseNumber
()
public
function
releaseNumber
()
{
{
set_time_limit
(
0
);
$m_bind
=
new
BindingPhone
();
$m_bind
=
new
BindingPhone
();
$fields
=
'a.id,aliYun_phone_id,expiry_date,phone_x,phone_a,phone_b,subsId,a.type,a.mappingId'
;
$fields
=
'a.id,aliYun_phone_id,expiry_date,phone_x,phone_a,phone_b,subsId,a.type,a.mappingId'
;
...
@@ -218,17 +219,17 @@ class PrivacyNumber
...
@@ -218,17 +219,17 @@ class PrivacyNumber
*/
*/
public
function
checkBindPhone
()
public
function
checkBindPhone
()
{
{
set_time_limit
(
0
);
$m_bind
=
new
BindingPhone
();
$m_bind
=
new
BindingPhone
();
$where
[
'a.status'
]
=
1
;
$where
[
'a.status'
]
=
1
;
$where
[
'a.type'
]
=
1
;
$where
[
'a.type'
]
=
1
;
$select_data
=
$m_bind
->
getBindingPhoneList
(
'a.id,a.aliYun_phone_id,b.phone_x,a.subsId,a.expiry_date'
,
$where
);
$where
[
'a.expiry_date'
]
=
[
'<'
,
date
(
'Y-m-d H:i:s'
)];
$select_data
=
$m_bind
->
getBindingPhoneList
(
'a.id,a.aliYun_phone_id,b.phone_x,a.subsId,a.expiry_date'
,
$where
);
foreach
(
$select_data
as
$k
=>
$v
)
{
foreach
(
$select_data
as
$k
=>
$v
)
{
$query_status
=
PlsDemo
::
querySubscriptionDetail
(
$v
[
'subsId'
],
$v
[
'phone_x'
]);
$query_status
=
PlsDemo
::
querySubscriptionDetail
(
$v
[
'subsId'
],
$v
[
'phone_x'
]);
if
(
isset
(
$query_status
->
Code
)
&&
(
$query_status
->
Code
!=
'OK'
))
{
$expiry_date
=
strtotime
(
$select_data
[
'expiry_date'
]);
if
(
isset
(
$query_status
->
code
)
&&
(
$query_status
->
Code
!=
'OK'
)
&&
(
$expiry_date
<
time
()))
{
$m_bind
->
unBindTable
(
$v
[
'id'
],
$v
[
'aliYun_phone_id'
]);
$m_bind
->
unBindTable
(
$v
[
'id'
],
$v
[
'aliYun_phone_id'
]);
}
}
}
}
...
...
public/resource/template/user_template_tpl.html
View file @
af0cdff9
...
@@ -42,8 +42,9 @@
...
@@ -42,8 +42,9 @@
<
td
width
=
"16%"
>
<
td
width
=
"16%"
>
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
])
||
(
it
[
item
][
'agent_id'
]
==
0
)
||
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
||
check_auth
(
'index/useraction_search'
)
)
{
%
]
[
%
if
((
check_auth
(
'auth_vip'
)
&&
it
[
item
][
'vip'
])
||
(
it
[
item
][
'agent_id'
]
==
0
)
||
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
||
check_auth
(
'index/useraction_search'
)
)
{
%
]
<
a
class
=
"btn1 btn-success caozuo genj_ure"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
/
跟进
<
/a> 
;
<
a
class
=
"btn1 btn-success caozuo genj_ure"
href
=
"#modal-record"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
详情
/
跟进
<
/a> 
;
[
%
if
(
it
[
item
][
'agent_id'
]
==
it
[
item
][
'current_agent_id'
])
{
%
]
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
客户编辑
<
/a> 
;
<
a
class
=
"btn1 btn-success caozuo"
href
=
"#modal-record-edit"
data
-
toggle
=
"modal"
data
-
phone
=
'[%= it[item]["user_phone"] %]'
data
-
id
=
'[%= it[item]["id"] %]'
>
客户编辑
<
/a> 
;
[
%
}
%
]
<!--<
a
class
=
"btn1 btn-success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
跟进
<
/a> --
>
<!--<
a
class
=
"btn1 btn-success genj_ure"
href
=
"#modal-add"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
跟进
<
/a> --
>
<
a
class
=
"btn1 btn-success take-look"
href
=
"#modal-takeLook"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
data
-
phone
=
'[%= it[item]["user_phone"] %]'
>
约带看
<
/a
>
<
a
class
=
"btn1 btn-success take-look"
href
=
"#modal-takeLook"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
name
=
'[%= it[item]["user_name"] %]'
data
-
phone
=
'[%= it[item]["user_phone"] %]'
>
约带看
<
/a
>
...
...
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