|
@@ -80,7 +80,7 @@ class Update extends Page
|
|
|
$this->setInfo($info, $data, $remote, $show, $source, $default, 1, $this->config['field']);
|
|
|
if ($spec) {
|
|
|
foreach ($spec as $k => $v) {
|
|
|
- $data['update'][$spec[$k][0]]['remote'] = Dever::url($spec[$k][1]);
|
|
|
+ $data['update'][$spec[$k][0]]['remote'] = Dever::url($spec[$k][1], array('value' => '', 'table' => $this->db->config['load'], 'id' => false));
|
|
|
$result = Dever::call($spec[$k][1], array($spec[$k][3], $spec[$k][4], $this->info['id']));
|
|
|
if ($result) {
|
|
|
$data['field'][$spec[$k][2]] = $result;
|
|
@@ -117,9 +117,9 @@ class Update extends Page
|
|
|
if ($remote) {
|
|
|
$info = array();
|
|
|
foreach ($remote as $k => $v) {
|
|
|
- $data['update'][$v[0]]['remote'] = Dever::url($v[1]);
|
|
|
+ $data['update'][$v[0]]['remote'] = Dever::url($v[1], array('value' => '', 'table' => $this->db->config['load'], 'id' => false));
|
|
|
if (isset($v[2]) && isset($data['option'][$v[2]]) && $data['option'][$v[2]] && $m = Dever::issets($data['option'][$v[2]][0], 'id')) {
|
|
|
- $result = Dever::call($v[1], array($m), 'api');
|
|
|
+ $result = Dever::call($v[1], array($m, $this->db->config['load'], false), 'api');
|
|
|
if ($result) {
|
|
|
$this->setUpdate($info, $data, $result);
|
|
|
}
|
|
@@ -186,11 +186,11 @@ class Update extends Page
|
|
|
$data['field'][$k] = $v;
|
|
|
}
|
|
|
if (isset($remote[$k])) {
|
|
|
- $data['update'][$remote[$k][0]]['remote'] = Dever::url($remote[$k][1]);
|
|
|
+ $data['update'][$remote[$k][0]]['remote'] = Dever::url($remote[$k][1], array('value' => '', 'table' => $this->db->config['load'], 'id' => false));
|
|
|
if ($field[$k]['type'] == 'cascader' && !isset($field[$k]['option'])) {
|
|
|
|
|
|
} else {
|
|
|
- $result = Dever::call($remote[$k][1], array($v), 'api');
|
|
|
+ $result = Dever::call($remote[$k][1], array($v, $this->db->config['load'], $info['id'] ?? false), 'api');
|
|
|
if ($result) {
|
|
|
$this->setUpdate($info, $data, $result);
|
|
|
}
|