|
@@ -19,6 +19,7 @@ Class Soft_cash
|
|
|
$buy_cdate = Dever::param('buy_cdate',$data);
|
|
|
|
|
|
$soft = Dever::db('agent/soft_cash')->one($id);
|
|
|
+
|
|
|
$info = Dever::db('agent/member')->find(array('mobile'=>$soft['mobile']));
|
|
|
if($info){
|
|
|
$update['where_id'] = $id;
|
|
@@ -75,6 +76,7 @@ Class Soft_cash
|
|
|
// print_R($order);die;
|
|
|
$update['set_agreement_id'] = Dever::load('agent/lib/agreement')->up($order,1,3);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if (!$audit) {
|
|
@@ -82,11 +84,26 @@ Class Soft_cash
|
|
|
$update['status'] = 2;
|
|
|
}
|
|
|
}
|
|
|
+ if ($soft) {
|
|
|
+ if ($soft['audit_admin'] <1 || !$soft['audit_admin']) {
|
|
|
+ $admin = Dever::load('manage/auth.info');
|
|
|
+ $update['audit_admin'] = $admin['id'];
|
|
|
+ }
|
|
|
+ }
|
|
|
$ids=Dever::db('agent/soft_cash')->update($update);
|
|
|
- // echo Dever::sql();die;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ public function admin_name($id)
|
|
|
+ {
|
|
|
+ if ($id < 1) {
|
|
|
+ return '';
|
|
|
+ } else {
|
|
|
+ $audit = Dever::db('manage/admin')->find($id);
|
|
|
+ // print_R($audit);die;
|
|
|
+ return $audit['username'];
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
public function getOrderId($id)
|
|
|
{
|
|
|
$order = Dever::order();
|