1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace app\api\controller;
- class Sellerlogout extends MobileSeller
- {
- public function initialize()
- {
- parent::initialize();
- }
-
- public function index()
- {
- if (empty(input('post.seller_name')) || !in_array(input('post.client'), $this->client_type_array)) {
- ds_json_encode(10001, lang('param_error'));
- }
- $mbsellertoken_model = model('mbsellertoken');
- if ($this->seller_info['seller_name'] == input('post.seller_name')) {
- $condition = array();
- $condition[] = array('seller_id', '=', $this->seller_info['seller_id']);
- $mbsellertoken_model->delMbsellertoken($condition);
- ds_json_encode(10000, '', 1);
- } else {
- ds_json_encode(10001, lang('param_error'));
- }
- }
- }
|