作者 王智

1111

... ... @@ -362,7 +362,6 @@ class Index extends Api
if ($Params['type'] == 1) {
if ($Params['status'] == 1) {
if ($Params['enmu'] == 1) {
echo '0';
$data = [
'user_id' => $UserId,
'status' => 1,
... ... @@ -392,7 +391,6 @@ class Index extends Api
'updatetime' => time()
];
} else {
echo '1';
$data = [
'seller_id' => $SellerId,
'status' => 2,
... ... @@ -451,14 +449,26 @@ class Index extends Api
'qrcode_image' => '/images/' . $Id . '.png'
]);
} else {
echo '2';
$data = [
'title' => $Params['title'],
'family_name' => $Params['family_name'],
'family_mobile' => $Params['family_mobile'],
'call' => $Params['call'],
'content' => $Params['content'],
'portrait_image' => $Params['portrait_image'],
'die_name' => $Params['die_name'],
'die_sex' => $Params['die_sex'],
'die_birthday' => $Params['die_birthday'],
'die_time' => $Params['die_time'],
'happy_year' => $Params['happy_year'],
'go_out' => $Params['go_out'],
'love_what' => $Params['love_what'],
'hall_address' => $Params['hall_address'],
'hall_lng' => $Params['hall_lng'],
'hall_lat' => $Params['hall_lat'],
'mourn_address' => $Params['mourn_address'],
'mourn_lng' => $Params['mourn_lng'],
'mourn_lat' => $Params['mourn_lat'],
'mourn_time' => $Params['mourn_time'],
'thank_address' => $Params['thank_address'],
'thank_lng' => $Params['thank_lng'],
'thank_lat' => $Params['thank_lat'],
'thank_time' => $Params['thank_time'],
'after_images' => $Params['after_images'],
'updatetime' => time()
];
$Res = Db::name('ob')->where('id', $Params['id'])->update($data);
... ...