|
@@ -470,10 +470,12 @@ class Wenzhen extends Apic
|
|
|
Db::startTrans();
|
|
|
//给医生结算钱
|
|
|
$logtype = $wenzhen_order['ordertype'] == 1 ? 111 : 112;
|
|
|
- $rs_wallet = model('walletdoctor')->lockChangeAccountRemain($this->auth->id,'money',$wenzhen_order['total_fee'],$logtype,$remark='问诊订单','wenzhen_order',$order_id);
|
|
|
- if($rs_wallet['status'] === false){
|
|
|
- Db::rollback();
|
|
|
- $this->error($rs_wallet['msg']);
|
|
|
+ if($wenzhen_order['comefrom'] == 1 && $wenzhen_order['total_fee'] > 0){
|
|
|
+ $rs_wallet = model('walletdoctor')->lockChangeAccountRemain($this->auth->id,'money',$wenzhen_order['total_fee'],$logtype,$remark='问诊订单','wenzhen_order',$order_id);
|
|
|
+ if($rs_wallet['status'] === false){
|
|
|
+ Db::rollback();
|
|
|
+ $this->error($rs_wallet['msg']);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//订单状态
|