作者 王晓刚
1 个管道 的构建 通过 耗费 25 秒

分享bug

... ... @@ -36,7 +36,7 @@ class GoodsdetailsController extends WeChatBaseController{
if(!empty($share_user)){
// dump($share_user);
//判断用户是不是自由人
if($share_user['status'] == 0){
if($share_user['status'] == 0 || $share_user['status'] == 1 || $share_user['status'] == 5 || $share_user['status'] == 6){
//如果是自由人 那就绑定关系
$share_data['status'] = 4;
$share_data['pid'] = $goods_id['id'];
... ...
... ... @@ -133,7 +133,7 @@ class ShopcartController extends WeChatBaseController{
$indent['uid'] = $uid;
$indent['state'] = 4;
$indent['order_number'] = date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8);
$indent['order_number'] = cmf_get_order_sn();
$indent['money'] = $_POST['myprice'];
$indent['create_time'] = time();
$indent['indent_type'] = 1;
... ... @@ -163,7 +163,7 @@ class ShopcartController extends WeChatBaseController{
}elseif ($data[0]['type'] == 2){
$indent['uid'] = $uid;
$indent['state'] = 4;
$indent['order_number'] = date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8);
$indent['order_number'] = cmf_get_order_sn();
$indent['money'] = $_POST['myprice'];
$indent['indent_type'] = 2;
$indent['create_time'] = time();
... ...