|
@@ -518,18 +518,22 @@ class Import
|
|
|
continue;
|
|
|
}
|
|
|
$update = array();
|
|
|
+ $order_update = array();
|
|
|
if ($v['avatar']) {
|
|
|
$update['avatar'] = $this->upload($v['avatar']);
|
|
|
}
|
|
|
if ($v['sign']) {
|
|
|
$update['sign'] = $this->upload($v['sign']);
|
|
|
+ $order_update['sign'] = $update['sign'];
|
|
|
}
|
|
|
if ($v['idcard_front']) {
|
|
|
$update['idcard_front'] = $this->upload($v['idcard_front']);
|
|
|
+ $order_update['idcard_front'] = $update['idcard_front'];
|
|
|
}
|
|
|
|
|
|
if ($v['idcard_back']) {
|
|
|
$update['idcard_back'] = $this->upload($v['idcard_back']);
|
|
|
+ $order_update['idcard_back'] = $update['idcard_back'];
|
|
|
}
|
|
|
|
|
|
if ($update) {
|
|
@@ -537,15 +541,16 @@ class Import
|
|
|
Dever::db('agent/member')->update($update);
|
|
|
|
|
|
$order = Dever::db('agent/order')->find($v['id']);
|
|
|
- if ($order) {
|
|
|
+ if ($order && $order_update) {
|
|
|
if ($order['pay_pic']) {
|
|
|
$temp = explode(',', $order['pay_pic']);
|
|
|
foreach ($temp as $k1 => $v1) {
|
|
|
$temp[$k1] = $this->upload($v1);
|
|
|
}
|
|
|
- $update['pay_pic'] = implode(',', $temp);
|
|
|
+ $order_update['pay_pic'] = implode(',', $temp);
|
|
|
}
|
|
|
- if ($update) {
|
|
|
+ if ($order_update) {
|
|
|
+ $order_update['where_id'] = $v['id'];
|
|
|
Dever::db('agent/order')->update($update);
|
|
|
}
|
|
|
}
|