|
@@ -122,8 +122,7 @@ class Index extends Base
|
|
|
public function getYzOrderList()
|
|
|
{
|
|
|
|
|
|
- $param = $this->request->filter('trim')->only(['tid' => '', 'oid' => '', 'plat_code' => '', 'orderCode' => '', 'skuCode' => '', 'platform_name' => '', 'status' => '', 'addtime_start' => '', 'addtime_end' => '', 'page' => 1, 'size' => 15], 'post');
|
|
|
-
|
|
|
+ $param = $this->request->filter('trim')->only(['tid' => '','oid' => '', 'plat_code' => '', 'orderCode' => '', 'skuCode' => '', 'platform_name' => '', 'status' => '', 'addtime_start' => '', 'addtime_end' => '', 'page' => 1, 'size' => 15], 'post');
|
|
|
return Order::getYzOrderList($param);
|
|
|
|
|
|
}
|
|
@@ -227,26 +226,7 @@ class Index extends Base
|
|
|
|
|
|
}
|
|
|
|
|
|
- //订单删除
|
|
|
- public function orderDelete()
|
|
|
- {
|
|
|
- $param = $this->request->filter('trim')->only(['id', 'token']);
|
|
|
-
|
|
|
- $val = Validate::rule(['id|ID' => 'require|number|gt:0', 'token' => 'require']);
|
|
|
-
|
|
|
- if ($val->check($param)) {
|
|
|
- $user = GetUserInfo($param['token']);
|
|
|
-
|
|
|
- $param['uid'] = isset($user['data']['id']) ? $user['data']['id'] : 0;
|
|
|
- $param['uname'] = isset($user['data']['nickname']) ? $user['data']['nickname'] : 0;
|
|
|
-
|
|
|
- $res = curl_request(config('app.yz_domain') . 'api/yz_order_delete', $param);
|
|
|
- $res = json_decode($res, true);
|
|
|
- return app_show($res['code'], $res['message']);
|
|
|
- } else return error_show(1005, $val->getError());
|
|
|
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
}
|