Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhupu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
zhupu
Commits
10452337
Commit
10452337
authored
Nov 21, 2023
by
sugar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
姓名卡
parent
b2668cf7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
application/admin/controller/family/Namecard.php
application/admin/controller/family/Namecard.php
+3
-2
application/admin/view/family/namecard/advancecode.html
application/admin/view/family/namecard/advancecode.html
+1
-1
application/admin/view/family/namecard/bindcode.html
application/admin/view/family/namecard/bindcode.html
+1
-1
No files found.
application/admin/controller/family/Namecard.php
View file @
10452337
...
@@ -185,6 +185,7 @@ class Namecard extends Backend
...
@@ -185,6 +185,7 @@ class Namecard extends Backend
$cards
[
$x
][
'activation_code'
]
=
implode
(
''
,
$tempPwdStr
);
//激活码
$cards
[
$x
][
'activation_code'
]
=
implode
(
''
,
$tempPwdStr
);
//激活码
$cards
[
$x
][
'createtime'
]
=
time
();
//创建时间
$cards
[
$x
][
'createtime'
]
=
time
();
//创建时间
$cards
[
$x
][
'family_id'
]
=
$params
[
'family_id'
]
?
$params
[
'family_id'
]
:
0
;
$cards
[
$x
][
'family_id'
]
=
$params
[
'family_id'
]
?
$params
[
'family_id'
]
:
0
;
$cards
[
$x
][
'pid'
]
=
$params
[
'pid'
]
?
$params
[
'pid'
]
:
0
;
$cards
[
$x
][
'url'
]
=
createQrcode
(
$data
,
$data
[
'type'
],
$card_number
);
$cards
[
$x
][
'url'
]
=
createQrcode
(
$data
,
$data
[
'type'
],
$card_number
);
}
}
array_unique
(
$cards
,
SORT_REGULAR
);
array_unique
(
$cards
,
SORT_REGULAR
);
...
@@ -206,7 +207,7 @@ class Namecard extends Backend
...
@@ -206,7 +207,7 @@ class Namecard extends Backend
if
(
$this
->
request
->
isPost
())
{
if
(
$this
->
request
->
isPost
())
{
$params
=
$this
->
request
->
post
(
'row/a'
);
$params
=
$this
->
request
->
post
(
'row/a'
);
$num
=
$params
[
'card_number'
];
//绑定多少组卡号编码
$num
=
$params
[
'card_number'
];
//绑定多少组卡号编码
$
user_id
=
$params
[
'user_
id'
];
$
pid
=
$params
[
'p
id'
];
$start_number
=
$params
[
'start_number'
];
//起始卡号
$start_number
=
$params
[
'start_number'
];
//起始卡号
$where
[
'id'
]
=
[
'between'
,
[
$start_number
,
$start_number
+
$num
-
1
]];
$where
[
'id'
]
=
[
'between'
,
[
$start_number
,
$start_number
+
$num
-
1
]];
$cards
=
$this
->
model
->
where
(
$where
)
->
select
();
$cards
=
$this
->
model
->
where
(
$where
)
->
select
();
...
@@ -215,7 +216,7 @@ class Namecard extends Backend
...
@@ -215,7 +216,7 @@ class Namecard extends Backend
$this
->
error
(
"此卡段存在"
.
$val
[
'card_number'
]
.
"卡券已被绑定,请重新检查"
);
$this
->
error
(
"此卡段存在"
.
$val
[
'card_number'
]
.
"卡券已被绑定,请重新检查"
);
}
}
}
}
$result
=
$this
->
model
->
where
(
$where
)
->
update
([
'
user_id'
=>
$user_
id
,
'level'
=>
$params
[
'level'
]]);
$result
=
$this
->
model
->
where
(
$where
)
->
update
([
'
pid'
=>
$p
id
,
'level'
=>
$params
[
'level'
]]);
// $agent = $this->agentmodel->where(['agent_user_id' => $user_id])->field('card_section,type')->find();
// $agent = $this->agentmodel->where(['agent_user_id' => $user_id])->field('card_section,type')->find();
if
(
$result
){
if
(
$result
){
// if($agent['card_section']){
// if($agent['card_section']){
...
...
application/admin/view/family/namecard/advancecode.html
View file @
10452337
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('分配人id')}:
</label>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('分配人id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-
user_id"
data-rule=
""
data-source=
"user/user/index"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {realname}"
class=
"form-control selectpage"
name=
"row[user_
id]"
type=
"text"
value=
""
style=
"display:block;"
>
<input
id=
"c-
pid"
data-rule=
""
data-source=
"user/user/index"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {realname}"
class=
"form-control selectpage"
name=
"row[p
id]"
type=
"text"
value=
""
style=
"display:block;"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
...
application/admin/view/family/namecard/bindcode.html
View file @
10452337
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('分配人id')}:
</label>
<label
class=
"control-label col-xs-12 col-sm-2"
>
{:__('分配人id')}:
</label>
<div
class=
"col-xs-12 col-sm-8"
>
<div
class=
"col-xs-12 col-sm-8"
>
<input
id=
"c-
user_id"
data-rule=
""
data-source=
"user/user/index"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {realname}"
class=
"form-control selectpage"
name=
"row[user_
id]"
type=
"text"
value=
""
style=
"display:block;"
>
<input
id=
"c-
pid"
data-rule=
""
data-source=
"user/user/index"
data-primary-key=
"id"
data-field=
"id"
data-format-item=
"{id} - {nickname} - {realname}"
class=
"form-control selectpage"
name=
"row[p
id]"
type=
"text"
value=
""
style=
"display:block;"
>
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
...
...
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