|
@@ -209,6 +209,7 @@ class OrderService extends BaseService
|
|
|
'price'=> $info['price'],
|
|
'price'=> $info['price'],
|
|
|
'num'=> 1,
|
|
'num'=> 1,
|
|
|
'total'=> $total,
|
|
'total'=> $total,
|
|
|
|
|
+ 'score'=> $info['score'],
|
|
|
'pay_money'=> 0,
|
|
'pay_money'=> 0,
|
|
|
'pay_score'=> 0,
|
|
'pay_score'=> 0,
|
|
|
'status'=>1,
|
|
'status'=>1,
|
|
@@ -231,7 +232,7 @@ class OrderService extends BaseService
|
|
|
$id = isset($params['id'])? $params['id'] : 0;
|
|
$id = isset($params['id'])? $params['id'] : 0;
|
|
|
$info = $this->model->where(['id'=> $id,'mark'=>1,'status'=>1])->first();
|
|
$info = $this->model->where(['id'=> $id,'mark'=>1,'status'=>1])->first();
|
|
|
$total = isset($info['total'])? $info['total'] : 0;
|
|
$total = isset($info['total'])? $info['total'] : 0;
|
|
|
- $payScore = isset($info['score'])? intval($info['score']) : 0;
|
|
|
|
|
|
|
+ $payScore = isset($info['score'])? $info['score'] : 0;
|
|
|
if(!$id || empty($info)){
|
|
if(!$id || empty($info)){
|
|
|
$this->error = 2073;
|
|
$this->error = 2073;
|
|
|
return false;
|
|
return false;
|