|
@@ -230,6 +230,7 @@ class Import
|
|
|
$state = preg_match(Dever::rule('mobile'), $v['A']);
|
|
|
if ($state) {
|
|
|
if ($v['C'] > 0) {
|
|
|
+ $where['clear'] = true;
|
|
|
$where['mobile'] = $v['A'];
|
|
|
$type_name = $v['D'];
|
|
|
if ($type_name == '期权') {
|
|
@@ -239,12 +240,12 @@ class Import
|
|
|
}
|
|
|
$info = Dever::db('option/member')->find($where);
|
|
|
if ($info) {
|
|
|
- $account = Dever::db('option/account')->find($info['aid']);
|
|
|
+ $account = Dever::db('option/account')->find(array('id' => $info['aid'], 'clear' => true));
|
|
|
if ($account && $account['status'] < 3) {
|
|
|
if ($check == 1) {
|
|
|
$state = true;
|
|
|
} else {
|
|
|
- $state = Dever::load('option/lib/cash')->up($info['id'], $account['id'], $type, $v['C'], $v['E'], false);
|
|
|
+ $state = Dever::load('option/lib/cash')->up($account['id'], $info['id'], $type, $v['C'], $v['E'], false);
|
|
|
}
|
|
|
|
|
|
if ($state) {
|
|
@@ -319,7 +320,7 @@ class Import
|
|
|
if ($check == 1) {
|
|
|
$state = true;
|
|
|
} else {
|
|
|
- $state = Dever::load('option/lib/cash')->up($info['id'], $account['id'], $type, $v['C'], $v['E'], false);
|
|
|
+ $state = Dever::load('option/lib/cash')->up($account['id'], $info['id'], $type, $v['C'], $v['E'], false);
|
|
|
}
|
|
|
if ($state) {
|
|
|
$table_status['body'][0][0] += 1;
|