|
@@ -61,7 +61,6 @@ class MCustomerBalance extends MBaseModel
|
|
|
public function addCustomerBalance($customerId, $changedMoney)
|
|
|
{
|
|
|
$tableName = $this->objDCustomerBalance->getTableName('qianniao_customer_balance_' . $this->enterpriseId, $customerId, $this->cutTable);
|
|
|
- var_dump($tableName);
|
|
|
$this->objDCustomerBalance->setTable($tableName);
|
|
|
|
|
|
//获取客户目前的余额
|
|
@@ -77,7 +76,9 @@ class MCustomerBalance extends MBaseModel
|
|
|
'createTime' => time(),
|
|
|
'updateTime' => time()
|
|
|
];
|
|
|
+ var_dump("xxx");
|
|
|
$detailId = $this->objDCustomerBalance->insert($balanceData);
|
|
|
+ var_dump("aaa");
|
|
|
if ($detailId === false) {
|
|
|
return ResultWrapper::fail($this->objDCustomerBalance->error(), ErrorCode::$dberror);
|
|
|
}
|