Commit 1371ad25 authored by sugar's avatar sugar

姓名卡

parent 10452337
......@@ -212,7 +212,7 @@ class Namecard extends Backend
$where['id'] = ['between', [$start_number, $start_number + $num - 1]];
$cards = $this->model->where($where)->select();
foreach ($cards as $key => $val){
if ($val['user_id']) {
if ($val['pid']) {
$this->error("此卡段存在" . $val['card_number'] . "卡券已被绑定,请重新检查");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment