|
@@ -45,7 +45,7 @@ class Receipt extends Api{
|
|
|
// 上传失败
|
|
|
if( $orderData['status'] == 9 ) return json_send(['code'=>'error','msg'=>'订单回执审核中','data'=>'']);
|
|
|
// 上传失败
|
|
|
- if( $orderData['status'] != 1 ) return json_send(['code'=>'success','msg'=>'订单已取消','data'=>'']);
|
|
|
+ if( !in_array($orderData['status'],[1,2,3]) ) return json_send(['code'=>'error','msg'=>'订单状态不允许','data'=>'']);
|
|
|
// 积分结果
|
|
|
$score = floor( $orderData['pay_total'] * 1 ) > 0 ? floor( $orderData['pay_total'] * 1 ) : 0;
|
|
|
// 组合数据,写入订单表,子表
|