作者 anyv
1 个管道 的构建 通过 耗费 1 秒

4

... ... @@ -115,6 +115,7 @@ class SalesmangoodsController extends WeChatBaseController{
$data['press_time'] = $_POST['press_time'];
$data['suit'] = $_POST['suit'];
$data['grade'] = $_POST['grade'];
$data['printing'] = $_POST['printing'];
$det_img[0] = $_POST['img0'];
$det_img[1] = $_POST['img1'];
$det_img[2] = $_POST['img2'];
... ...
... ... @@ -309,12 +309,13 @@
press = $("input[name='press']").val();
press_time = $("input[name='press_time']").val();
suit = $("input[name='suit']").val();
printing = $("input[name='printing']").val();
grade = $("#grade").text();
img0 = $('#img0')[0].src;
img1 = $('#img1')[0].src;
img2 = $('#img2')[0].src;
$.post("{:url('Salesmangoods/Salesman_goods_add')}",{show_img:show_img,thumbnail:thumbnail,book_name:book_name,money:money,price:price,pricing:pricing,instr:instr,book_number:book_number,paper:paper,book_size:book_size,binding:binding,author:author,press:press,press_time:press_time,suit:suit,grade:grade,img0:img0,img1:img1,img2:img2},function(data){
$.post("{:url('Salesmangoods/Salesman_goods_add')}",{show_img:show_img,thumbnail:thumbnail,book_name:book_name,money:money,price:price,pricing:pricing,instr:instr,book_number:book_number,paper:paper,book_size:book_size,binding:binding,author:author,press:press,press_time:press_time,suit:suit,grade:grade,img0:img0,img1:img1,img2:img2,printing:printing},function(data){
if(data){
window.location.href = "{:url('salesmangoods/salesman_goods')}";
}else{
... ...
... ... @@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
*/
public function checkWeChatUserLogin()
{
// $user = Db::name('user')->where('id',5)->find();
// cmf_update_current_user($user);
/*$user = Db::name('user')->where('id',5)->find();
cmf_update_current_user($user);*/
$userId = cmf_get_current_user_id();
if (empty($userId)) {
$config = [
... ...