|
@@ -136,7 +136,7 @@ class Agreement
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function up($account, $date, $total, $status = 1)
|
|
|
+ public function up($account, $date, $total, $qiquan, $yuanshi, $status = 1)
|
|
|
{
|
|
|
$member = Dever::db('option/member')->find($account['mid']);
|
|
|
$agreement = Dever::db('setting/agreement')->find(array('type' => 6));
|
|
@@ -149,6 +149,8 @@ class Agreement
|
|
|
$where['aid'] = $account['id'];
|
|
|
$where['agreement_id'] = $agreement['id'];
|
|
|
$where['jiaofu_total'] = $total;
|
|
|
+ $where['jiaofu_qiquan'] = $qiquan;
|
|
|
+ $where['jiaofu_yuanshi'] = $yuanshi;
|
|
|
$where['jiaofu_date'] = $date;
|
|
|
|
|
|
$info = Dever::db('option/agreement')->find($where);
|
|
@@ -423,10 +425,9 @@ class Agreement
|
|
|
if (isset($info['jiaofu_date'])) {
|
|
|
$info['jiaofu_date'] = date("Y年m月d日", $info['jiaofu_date']);
|
|
|
} else {
|
|
|
- $info['jiaofu_total'] = '0.00';
|
|
|
+ $info['jiaofu_total'] = $info['jiaofu_qiquan'] = $info['jiaofu_yuanshi'] = '0.00';
|
|
|
$info['jiaofu_date'] = date("Y年m月d日");
|
|
|
}
|
|
|
-
|
|
|
|
|
|
if (isset($info['qdate']) && $info['qdate']) {
|
|
|
$qdate = date('Y年m月d日', $info['qdate']);
|