|
@@ -185,7 +185,10 @@ class Video extends Backend
|
|
|
];
|
|
|
|
|
|
$data = json_encode($data, 320);
|
|
|
- $rs = httpRequest($url, 'POST', $data);
|
|
|
+ $header = [
|
|
|
+ 'Content-Type: application/json'
|
|
|
+ ];
|
|
|
+ $rs = httpRequest($url, 'POST', $data, $header);
|
|
|
if ($rs) {
|
|
|
$rs = json_decode($rs, true);
|
|
|
if ($rs['code'] == 'A000000') {
|
|
@@ -276,7 +279,10 @@ class Video extends Backend
|
|
|
]
|
|
|
];
|
|
|
$data = json_encode($data, 320);
|
|
|
- $rs = httpRequest($url, 'POST', $data);
|
|
|
+ $header = [
|
|
|
+ 'Content-Type: application/json'
|
|
|
+ ];
|
|
|
+ $rs = httpRequest($url, 'POST', $data, $header);
|
|
|
if ($rs) {
|
|
|
$rs = json_decode($rs, true);
|
|
|
if ($rs['code'] == 'A000000') {
|
|
@@ -349,7 +355,10 @@ class Video extends Backend
|
|
|
]
|
|
|
];
|
|
|
$data = json_encode($data, 320);
|
|
|
- $rs = httpRequest($url, 'POST', $data);
|
|
|
+ $header = [
|
|
|
+ 'Content-Type: application/json'
|
|
|
+ ];
|
|
|
+ $rs = httpRequest($url, 'POST', $data, $header);
|
|
|
if (!$rs) {
|
|
|
Db::rollback();
|
|
|
$this->error('删除失败');
|