master
chenzhi 5 years ago
parent 62311eb40d
commit 2e4067e1de

@ -555,8 +555,6 @@ class SpendCountSetController extends \Think\Controller
$savedata = array("inside_cash_count"=>$inside_cash_count-0+$dbres['inside_cash_count'],"all_count"=>$inside_cash_count-0+$dbres['all_count']);
$tempdbres = $this->usermodel->where($tempmap)->save($savedata);
if($tempdbres === false){
dump($dbres);
dump($savedata);
$this->usermodel->rollback();
die("setInsideCount error");
}
@ -569,6 +567,11 @@ class SpendCountSetController extends \Think\Controller
$initdata = $this->getMonthInit();
$balance = $this->getBalanceUser();
$bind = $this->getBindUser();
dump($initdata["inside_cash_count"]);
echo "<br/>";
dump($balance);
echo "<br/>";
dump($bind);
$initdata["inside_cash_count"] = $initdata["inside_cash_count"]-$balance-$bind;
$initdata["all_count"] = $initdata["inside_cash_count"]-0+$initdata["balance_coin_count"]-0+$initdata["cash_count"];
$initdata["count_date"] = $this->date;

Loading…
Cancel
Save