@@ -562,7 +562,7 @@ class DeliveryController extends BaseController
util::success($ret['data']);
}else{
- Yii::error('获取订单取消原因:'.json_encode($ret));
+ Yii::error('添加小费请求失败,请求数据是:'.json_encode($ret));
util::fail($ret['msg']);
}
@@ -84,7 +84,12 @@ class ShansongAdapter extends Shansong implements Adapter
Yii::error('status=' . $resp['status'] . ', msg=' . $resp['msg']);
- return null;
+ return [
+ 'code' => -1,
+ 'platform' => 'shansong',
+ 'msg' => $resp['msg'] ?? 'Unknown error',
+ 'data' => []
+ ];
/**