|
@@ -2489,26 +2489,28 @@ class Database
|
|
|
//print_r($param);die;
|
|
|
|
|
|
if (isset($param)) {
|
|
|
- print_r($param);die;
|
|
|
- if (strstr($method, 'mul.')) {
|
|
|
- $url = str_replace('mul.', '', $method);
|
|
|
- if ($url) {
|
|
|
- $send = array();
|
|
|
- foreach ($param as $k => $v) {
|
|
|
- $send['search_' . $k] = $v;
|
|
|
- }
|
|
|
- if (strstr($url, '?')) {
|
|
|
- $url .= '&' . http_build_query($send);
|
|
|
- } else {
|
|
|
- $url .= '?' . http_build_query($send);
|
|
|
- }
|
|
|
-
|
|
|
- Dever::alert($url, 2);
|
|
|
- }
|
|
|
- }
|
|
|
$data = Dever::db($this->project . '/' . $this->table)->getmul($param);
|
|
|
if ($data) {
|
|
|
Dever::config('base')->mul_data = array_keys($data);
|
|
|
+
|
|
|
+ if (strstr($method, 'mul.')) {
|
|
|
+ $url = str_replace('mul.', '', $method);
|
|
|
+ if ($url) {
|
|
|
+ $send = array();
|
|
|
+ foreach ($param as $k => $v) {
|
|
|
+ $send['search_' . $k] = $v;
|
|
|
+ }
|
|
|
+ $send['search_ids'] = implode(',', Dever::config('base')->mul_data);
|
|
|
+ if (strstr($url, '?')) {
|
|
|
+ $url .= '&' . http_build_query($send);
|
|
|
+ } else {
|
|
|
+ $url .= '?' . http_build_query($send);
|
|
|
+ }
|
|
|
+
|
|
|
+ Dever::alert($url, 2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$method = $this->project . '/' . $this->table . '-updatemul';
|
|
|
$state = Dever::load($method, $param);
|
|
|
}
|