fix teamstore password
This commit is contained in:
@@ -151,9 +151,10 @@ class TeamStoreController extends Controller {
|
||||
|
||||
public function checkTeamStorePassword(Request $request)
|
||||
{
|
||||
$m = new TeamStoreModel;
|
||||
$post = $request->all();
|
||||
$store_array = $m->selectTeamStore('Password', $post['password']);
|
||||
$m = new TeamStoreModel;
|
||||
$post = $request->all();
|
||||
|
||||
$store_array = $m->checkStorePassword($post['store_id'], $post['password']);
|
||||
|
||||
if($store_array){
|
||||
$request->session()->put('teamstore_data_array', $store_array);
|
||||
|
||||
@@ -39,6 +39,15 @@ class TeamStoreModel extends Model {
|
||||
return $i;
|
||||
}
|
||||
|
||||
function checkStorePassword($storeid, $password)
|
||||
{
|
||||
$i = DB::table('teamstores')
|
||||
->where('Id', $storeid)
|
||||
->where('Password', $password)
|
||||
->get();
|
||||
return $i;
|
||||
}
|
||||
|
||||
function selectTeamStoreGroupByCartKey($cartKey)
|
||||
{
|
||||
$i = DB::table('cart_tmp')
|
||||
|
||||
Reference in New Issue
Block a user