Skip to content

Commit

Permalink
增加门店事件, 门店二维码
Browse files Browse the repository at this point in the history
  • Loading branch information
twinh committed Aug 1, 2017
1 parent 0fc48be commit d152213
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions resources/views/admin/shop/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<th class="t-8">微信同步结果</th>
<?php endif ?>
<th>启用</th>
<?php $event->trigger('adminShopList') ?>
<th>操作</th>
</tr>
</thead>
Expand Down Expand Up @@ -136,6 +137,7 @@
});
}
},
<?php $event->trigger('adminShopListContent') ?>
{
data: 'id',
sClass: 'text-center',
Expand Down
5 changes: 4 additions & 1 deletion src/Controller/Admin/Shop.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ public function editAction($req)
*/
public function updateAction($req)
{
$shop = wei()->shop()->findOrInitById($req['id'])->save($req);
$shop = wei()->shop()->findOrInitById($req['id']);
$this->event->trigger('preShopSave', $shop);
$shop->save($req);

wei()->shopUser()->curApp()->delete(['shopId' => $shop['id']]);
if ($req['userIds']) {
foreach ($req['userIds'] as $userId) {
Expand Down

0 comments on commit d152213

Please sign in to comment.